Documentation ¶
Overview ¶
Package register contains lookup table to get an instance of test.Subscribe. Exported NewSubscribeTest function is used by individual tests to register.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSubscribeTest ¶
GetSubscribeTest returns an instance of the test.
func NewSubscribeTest ¶
func NewSubscribeTest(te interface{}, f SubscribeFunc)
NewSubscribeTest registers given test to the framework. First argument is an instance of oneof field type in tests proto. Second argument is a factory function that creates an instance of the test. Registration is illustrated below for SubscribeTest_FirstTest (corresponding field in the proto is written as "first_test")
register.NewSubscribeTest(&tests_pb.SubscribeTest_FirstTest{}, someFunc)
Types ¶
Click to show internal directories.
Click to hide internal directories.