Documentation
¶
Overview ¶
test package provides object useful for testing code that relies on Codecs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestCodec ¶
TestCodec is a codec mock object useful for testing code that relies on codecs.
The mocking capabilities are provided by stretchrcom/testify framework.
func (*TestCodec) CanMarshalWithCallback ¶
CanMarshalWithCallback is a mocked function that records the activity in the Mock object and returns the values setup in user code by the .On.Return pair.
func (*TestCodec) ContentType ¶
ContentType is a mocked function that records the activity in the Mock object and returns the values setup in user code by the .On.Return pair.
func (*TestCodec) FileExtension ¶
FileExtension is a mocked function that records the activity in the Mock object and returns the values setup in user code by the .On.Return pair.
type TestObjectWithFacade ¶
TestObjectWithFacade is a mock test object that implements the Facade interface.
The mocking capabilities are provided by stretchrcom/testify framework.
func (*TestObjectWithFacade) PublicData ¶
func (o *TestObjectWithFacade) PublicData(options map[string]interface{}) (interface{}, error)
PublicData is a mocked function, as defined by the Facade interface, that records the activity in the Mock object and returns the values setup in user code by the .On.Return pair.