setup

package
v1.0.0-develop.8 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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 Setup

func Setup() TestSetup

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 (s *TestSetup) CreateSimpleResource(collectionId, data, name, _type string, signInputs []setup.SignInput) *types.MsgCreateResourceResponse

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)

Jump to

Keyboard shortcuts

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