test

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestBackend

func TestBackend(t *testing.T, tester Tester)

Types

type BackendTestSuite

type BackendTestSuite struct {
	suite.Suite
	*require.Assertions

	Tester Tester
	// contains filtered or unexported fields
}

func (*BackendTestSuite) SetupTest

func (s *BackendTestSuite) SetupTest()

func (*BackendTestSuite) TearDownTest

func (s *BackendTestSuite) TearDownTest()

func (*BackendTestSuite) TestTester

func (s *BackendTestSuite) TestTester()

func (*BackendTestSuite) Test_CompleteWorkflowTask_AddsNewEventsToHistory

func (s *BackendTestSuite) Test_CompleteWorkflowTask_AddsNewEventsToHistory()

func (*BackendTestSuite) Test_CompleteWorkflowTask_ReturnsErrorIfNotLocked

func (s *BackendTestSuite) Test_CompleteWorkflowTask_ReturnsErrorIfNotLocked()

func (*BackendTestSuite) Test_CreateWorkflowInstance_DoesNotError

func (s *BackendTestSuite) Test_CreateWorkflowInstance_DoesNotError()

func (*BackendTestSuite) Test_CreateWorkflowInstance_SameInstanceIDErrors added in v0.0.5

func (s *BackendTestSuite) Test_CreateWorkflowInstance_SameInstanceIDErrors()

func (*BackendTestSuite) Test_GetActivityTask_ReturnNilWhenTimeout

func (s *BackendTestSuite) Test_GetActivityTask_ReturnNilWhenTimeout()

func (*BackendTestSuite) Test_GetWorkflowTask_LocksTask

func (s *BackendTestSuite) Test_GetWorkflowTask_LocksTask()

func (*BackendTestSuite) Test_GetWorkflowTask_ReturnsNilWhenTimeout

func (s *BackendTestSuite) Test_GetWorkflowTask_ReturnsNilWhenTimeout()

func (*BackendTestSuite) Test_GetWorkflowTask_ReturnsTask

func (s *BackendTestSuite) Test_GetWorkflowTask_ReturnsTask()

type Tester

type Tester struct {
	New func() backend.Backend

	Teardown func()
}

Jump to

Keyboard shortcuts

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