test

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StatefunTestSuite

type StatefunTestSuite struct {
	suite.Suite
	// contains filtered or unexported fields
}

func (*StatefunTestSuite) AfterTest

func (s *StatefunTestSuite) AfterTest(suiteName, testName string)

func (StatefunTestSuite) CacheValue

func (env StatefunTestSuite) CacheValue(key string) (*easyjson.JSON, error)

func (StatefunTestSuite) OnAfterStartFunction

func (env StatefunTestSuite) OnAfterStartFunction(f statefun.OnAfterStartFunction, async bool)

func (StatefunTestSuite) Publish

func (env StatefunTestSuite) Publish(subj string, data []byte) error

func (StatefunTestSuite) RegisterFunction

func (env StatefunTestSuite) RegisterFunction(name string, handler statefun.FunctionLogicHandler, cfg statefun.FunctionTypeConfig)

func (StatefunTestSuite) Request

func (env StatefunTestSuite) Request(provider plugins.RequestProvider, typename, id string, payload, options *easyjson.JSON, timeout ...time.Duration) (*easyjson.JSON, error)

func (StatefunTestSuite) Runtime

func (env StatefunTestSuite) Runtime() *statefun.Runtime

func (StatefunTestSuite) SetThisDomainPreffix

func (env StatefunTestSuite) SetThisDomainPreffix(id string) string

func (*StatefunTestSuite) SetupTest

func (s *StatefunTestSuite) SetupTest()

func (StatefunTestSuite) Signal

func (env StatefunTestSuite) Signal(provider plugins.SignalProvider, typename, id string, payload, options *easyjson.JSON) error

func (StatefunTestSuite) StartRuntime

func (env StatefunTestSuite) StartRuntime() error

func (StatefunTestSuite) Stop

func (env StatefunTestSuite) Stop()

func (StatefunTestSuite) Subscribe

func (env StatefunTestSuite) Subscribe(subj string, h nats.MsgHandler) (*nats.Subscription, error)

func (StatefunTestSuite) SubscribeEgress

func (env StatefunTestSuite) SubscribeEgress(typename, id string) (*nats.Subscription, error)

func (StatefunTestSuite) SubscribeSync

func (env StatefunTestSuite) SubscribeSync(subj string) (*nats.Subscription, error)

Jump to

Keyboard shortcuts

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