setup

package
v1.1.1-develop.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: Apache-2.0 Imports: 19 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.QueryCollectionResourcesResponse, 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.QueryResourceResponse, error)

func (*TestSetup) QueryResourceMetadata

func (s *TestSetup) QueryResourceMetadata(collectionID, resourceID string) (*types.QueryResourceMetadataResponse, error)

Jump to

Keyboard shortcuts

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