Documentation ¶
Index ¶
- Constants
- type TestSetup
- func (s *TestSetup) BuildSimpleResource(collectionID, data, name, _type string) types.MsgCreateResourcePayload
- func (s *TestSetup) CollectionResources(collectionID string) (*types.QueryCollectionResourcesResponse, error)
- func (s *TestSetup) CreateResource(payload *types.MsgCreateResourcePayload, signInputs []setup.SignInput) (*types.MsgCreateResourceResponse, error)
- func (s *TestSetup) CreateSimpleResource(collectionID, data, name, _type string, signInputs []setup.SignInput) *types.MsgCreateResourceResponse
- func (s *TestSetup) QueryResource(collectionID, resourceID string) (*types.QueryResourceResponse, error)
- func (s *TestSetup) QueryResourceMetadata(collectionID, resourceID string) (*types.QueryResourceMetadataResponse, error)
Constants ¶
View Source
const ( CLSchemaType = "CL-Schema" SchemaData = "{\"attr\":[\"name\",\"age\"]}" TestResourceName = "Test Resource Name" JSONResourceType = "application/json" UUIDString = "A86F9CAE-0902-4a7c-a144-96b60ced2FC9" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestSetup ¶
type TestSetup struct { didsetup.TestSetup ResourceKeeper keeper.Keeper ResourceMsgServer types.MsgServer ResourceQueryServer types.QueryServer }
func (*TestSetup) BuildSimpleResource ¶
func (s *TestSetup) BuildSimpleResource(collectionID, data, name, _type string) types.MsgCreateResourcePayload
func (*TestSetup) CollectionResources ¶
func (s *TestSetup) CollectionResources(collectionID string) (*types.QueryCollectionResourcesResponse, error)
func (*TestSetup) CreateResource ¶
func (s *TestSetup) CreateResource(payload *types.MsgCreateResourcePayload, signInputs []setup.SignInput) (*types.MsgCreateResourceResponse, error)
func (*TestSetup) CreateSimpleResource ¶
func (*TestSetup) QueryResource ¶
func (s *TestSetup) QueryResource(collectionID, resourceID string) (*types.QueryResourceResponse, error)
func (*TestSetup) QueryResourceMetadata ¶
func (s *TestSetup) QueryResourceMetadata(collectionID, resourceID string) (*types.QueryResourceMetadataResponse, error)
Click to show internal directories.
Click to hide internal directories.