Documentation ¶
Index ¶
- Constants
- type TestSetup
- func (s *TestSetup) BuildSimpleResource(collectionId, data, name, _type string) types.MsgCreateResourcePayload
- func (s *TestSetup) CollectionResources(collectionId string) (*types.QueryGetCollectionResourcesResponse, 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.QueryGetResourceResponse, error)
- func (s *TestSetup) QueryResourceMetadata(collectionId, resourceId string) (*types.QueryGetResourceMetadataResponse, 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.QueryGetCollectionResourcesResponse, 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.QueryGetResourceResponse, error)
func (*TestSetup) QueryResourceMetadata ¶
func (s *TestSetup) QueryResourceMetadata(collectionId, resourceId string) (*types.QueryGetResourceMetadataResponse, error)
Click to show internal directories.
Click to hide internal directories.