fuzztest

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2026 License: CC0-1.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DescriptorITestService = "fuzztest.ITestService"
View Source
const (
	MethodITestServiceRepeatData = "repeatData"
)
View Source
const (
	TransactionITestServiceRepeatData = binder.FirstCallTransaction + 0
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ITestService

type ITestService interface {
	AsBinder() binder.IBinder
	RepeatData(ctx context.Context, token bool) (bool, error)
}

func NewTestServiceStub

func NewTestServiceStub(
	impl ITestServiceServer,
) ITestService

NewTestServiceStub creates a server-side ITestService wrapping the given server implementation. The returned value satisfies ITestService and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.

type ITestServiceServer

type ITestServiceServer interface {
	RepeatData(ctx context.Context, token bool) (bool, error)
}

ITestServiceServer is the server-side interface that user implementations provide to NewTestServiceStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type TestServiceProxy

type TestServiceProxy struct {
	Remote binder.IBinder
}

func NewTestServiceProxy

func NewTestServiceProxy(
	remote binder.IBinder,
) *TestServiceProxy

func (*TestServiceProxy) AsBinder

func (p *TestServiceProxy) AsBinder() binder.IBinder

func (*TestServiceProxy) RepeatData

func (p *TestServiceProxy) RepeatData(
	ctx context.Context,
	token bool,
) (bool, error)

type TestServiceStub

type TestServiceStub struct {
	Impl      ITestService
	Transport binder.VersionAwareTransport
}

TestServiceStub dispatches incoming binder transactions to a typed ITestService implementation.

func (*TestServiceStub) Descriptor

func (s *TestServiceStub) Descriptor() string

func (*TestServiceStub) OnTransaction

func (s *TestServiceStub) OnTransaction(
	ctx context.Context,
	code binder.TransactionCode,
	_data *parcel.Parcel,
) (*parcel.Parcel, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL