keeper

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QueryTestingResult = "testresult"
)

Variables

This section is empty.

Functions

func CheckTestingResult

func CheckTestingResult(t *testing.T, receivedTestingResult types.TestingResultItem,
	expectedTestingResult types.TestingResult)

func DefaultTestingResult

func DefaultTestingResult() types.TestingResult

func NewQuerier

func NewQuerier(keeper Keeper) sdk.Querier

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(storeKey sdk.StoreKey, cdc *codec.Codec) Keeper

func (Keeper) AddTestingResult

func (k Keeper) AddTestingResult(ctx sdk.Context, testingResult types.TestingResult)

Add single TestingResult for an existing TestingResults record.

func (Keeper) GetTestingResults

func (k Keeper) GetTestingResults(ctx sdk.Context, vid uint16, pid uint16,
	softwareVersion uint32) types.TestingResults

Gets the entire TestingResults record for VID/PID/SoftwareVersion combination.

func (Keeper) IsTestingResultsPresents

func (k Keeper) IsTestingResultsPresents(ctx sdk.Context, vid uint16, pid uint16, softwareVersion uint32) bool

Check if the TestingResults record is present in the store or not.

func (Keeper) IterateTestingResults

func (k Keeper) IterateTestingResults(ctx sdk.Context, process func(info types.TestingResults) (stop bool))

Iterate over all TestingResults records.

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

Logger returns a module-specific logger.

func (Keeper) SetTestingResults

func (k Keeper) SetTestingResults(ctx sdk.Context, testingResult types.TestingResults)

Sets the entire TestingResults record for a VID/PID combination.

type TestSetup

type TestSetup struct {
	Cdc                  *codec.Codec
	Ctx                  sdk.Context
	CompliancetestKeeper Keeper
	Querier              sdk.Querier
}

func Setup

func Setup() TestSetup

Jump to

Keyboard shortcuts

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