test

package
v0.0.0-...-7ee7fde Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Copyright (c) 2018-2020 The asimov developers Use of this source code is governed by an ISC license that can be found in the LICENSE file.

Copyright (c) 2018-2020 The asimov developers Copyright (c) 2013-2017 The btcsuite developers Use of this source code is governed by an ISC license that can be found in the LICENSE file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action interface {
	// contains filtered or unexported methods
}

type BlockGenerator

type BlockGenerator struct {
}

block

func (*BlockGenerator) Generate

func (bg *BlockGenerator) Generate() error

type BlockTxLocGenerator

type BlockTxLocGenerator struct {
}

block tx loc

func (*BlockTxLocGenerator) Generate

func (btlg *BlockTxLocGenerator) Generate() error

type BytesGenerator

type BytesGenerator struct {
}

bytes

func NewBytesGenerator

func NewBytesGenerator() *BytesGenerator

func (*BytesGenerator) CustomGenerate

func (bg *BytesGenerator) CustomGenerate(sz uint32) []byte

func (*BytesGenerator) Generate

func (bg *BytesGenerator) Generate() error

func (*BytesGenerator) GenerateHash

func (bg *BytesGenerator) GenerateHash() common.Hash

type DbBaseAction

type DbBaseAction struct {
	TestCaseContainer
}

DbAction

func NewDbBaseAction

func NewDbBaseAction() *DbBaseAction

type DbBatchAction

type DbBatchAction struct {
	TestCaseContainer
	// contains filtered or unexported fields
}

Db batch action

func NewDbBatchAction

func NewDbBatchAction(db database.Database) *DbBatchAction

type DbBatchDeleteCase

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

db batch delete

func NewDbBatchDeleteCase

func NewDbBatchDeleteCase(key []byte) *DbBatchDeleteCase

type DbBatchPutCase

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

db batch put

func NewBatchPutCase

func NewBatchPutCase(key, val []byte) *DbBatchPutCase

type DbBatchResetCase

type DbBatchResetCase struct {
}

db Batch reset

func NewDbBatchResetCase

func NewDbBatchResetCase() *DbBatchResetCase

type DbBatchWriteCase

type DbBatchWriteCase struct {
}

db Batch write

func NewDbBatchWriteCase

func NewDbBatchWriteCase() *DbBatchWriteCase

type DbBucketAction

type DbBucketAction struct {
	TestCaseContainer
	// contains filtered or unexported fields
}

Db Bucket action

func NewDbBucketAction

func NewDbBucketAction(db database.Database, isWritable bool) *DbBucketAction

type DbBucketCreateCase

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

create bucket

func NewDbBucketCreateCase

func NewDbBucketCreateCase(key []byte) *DbBucketCreateCase

type DbBucketCreateIfNotExistsCase

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

create bucket if not exists

func NewDbBucketCreateIfNotExistsCase

func NewDbBucketCreateIfNotExistsCase(key []byte) *DbBucketCreateIfNotExistsCase

type DbBucketDeleteBucketCase

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

delete buckdet

func NewDbBucketDeleteBucketCase

func NewDbBucketDeleteBucketCase(key []byte) *DbBucketDeleteBucketCase

type DbBucketDeleteCase

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

bucket delete

func NewDbBucketDeleteCase

func NewDbBucketDeleteCase(key []byte) *DbBucketDeleteCase

type DbBucketForEachBucketCase

type DbBucketForEachBucketCase struct {
}

bucket ForEachBucket

func NewDbbucketForEachbucketCase

func NewDbbucketForEachbucketCase() *DbBucketForEachBucketCase

type DbBucketForEachCase

type DbBucketForEachCase struct {
}

bucket Foreach

func NewDbBucketForEachCase

func NewDbBucketForEachCase() *DbBucketForEachCase

type DbBucketGetCase

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

bucket get

func NewDbBucketGetCase

func NewDbBucketGetCase(key []byte) *DbBucketGetCase

type DbBucketPutCase

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

bucket put

func NewDbBucketPutCase

func NewDbBucketPutCase(key, val []byte) *DbBucketPutCase

type DbContext

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

db context

type DbCursorAction

type DbCursorAction struct {
	TestCaseContainer
	// contains filtered or unexported fields
}

Db Cursor action

func NewDbCursorAction

func NewDbCursorAction(
	db database.Database,
	isWriable bool) *DbCursorAction

type DbCursorDeleteCase

type DbCursorDeleteCase struct {
}

cursor delete

func NewDbCursorDeleteCase

func NewDbCursorDeleteCase() *DbCursorDeleteCase

type DbCursorFirstCase

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

cursor first

func NewDbCursorFirstCase

func NewDbCursorFirstCase() *DbCursorFirstCase

type DbCursorKeyCase

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

cursor key

func NewDbCursorKeyCase

func NewDbCursorKeyCase() *DbCursorKeyCase

type DbCursorLastCase

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

cursor last

func NewDbCursorLastCase

func NewDbCursorLastCase() *DbCursorLastCase

type DbCursorNextCase

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

cursor next

func NewDbCursorNextCase

func NewDbCursorNextCase() *DbCursorNextCase

type DbCursorSeekCase

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

cursor seek

func NewDbCursorSeekCase

func NewDbCursorSeekCase(seek []byte) *DbCursorSeekCase

type DbCursorValueCase

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

cursor value

func NewDbCursorValueCase

func NewDbCursorValueCase() *DbCursorValueCase

type DbCursrPrevCase

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

cursor prev

func NewDbCursorPrevCase

func NewDbCursorPrevCase() *DbCursrPrevCase

type DbDeleteCase

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

db delete

func NewDbDeleteCase

func NewDbDeleteCase(
	key []byte) *DbDeleteCase

type DbGenerator

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

db

func NewDbGenerator

func NewDbGenerator(
	dbType string,
	netType common.AsimovNet,
	isMemdb bool) *DbGenerator

func (*DbGenerator) Generate

func (dbg *DbGenerator) Generate() error

type DbPutCase

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

db put

func NewDbPutCase

func NewDbPutCase(
	key, val []byte) *DbPutCase

type DbQueryCase

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

db query

func NewDbQueryCase

func NewDbQueryCase(
	key []byte) *DbQueryCase

type DbTxUpdateAction

type DbTxUpdateAction struct {
	TestCaseContainer
}

TxUpdateAction

func NewDbTxUpdateAction

func NewDbTxUpdateAction() *DbTxUpdateAction

type DbTxViewAction

type DbTxViewAction struct {
	TestCaseContainer
}

TxViewAction

func NewDbTxViewAction

func NewDbTxViewAction() *DbTxViewAction

type FfldbPathGenerator

type FfldbPathGenerator struct {
}

ffldb path

func (*FfldbPathGenerator) Generate

func (fpg *FfldbPathGenerator) Generate() error

type Generator

type Generator interface {
	Generate() error
}

type TestCase

type TestCase interface {
	// contains filtered or unexported methods
}

type TestCaseContainer

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

type TxCommitCase

type TxCommitCase struct {
}

TxCommit not used

func NewTxCommitCase

func NewTxCommitCase() *TxCommitCase

type TxFetchBlockCase

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

FetchBlock

func NewFetchBlockCase

func NewFetchBlockCase(
	blockHash *common.Hash) *TxFetchBlockCase

type TxFetchBlockHeaderCase

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

FetchBlockHeader

func NewFetchBlockHeaderCase

func NewFetchBlockHeaderCase(
	blockHash *common.Hash) *TxFetchBlockHeaderCase

type TxFetchBlockRegionCase

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

FetchBlockRegion

func NewFetchBlockRegionCase

func NewFetchBlockRegionCase(
	hash *common.Hash,
	offset, len uint32) *TxFetchBlockRegionCase

type TxHasBlockCase

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

HasBlock

func NewHasBlockCase

func NewHasBlockCase(
	blockHash *common.Hash) *TxHasBlockCase

type TxRollbackCase

type TxRollbackCase struct {
}

TxRollback not used

func NewTxRollbackCase

func NewTxRollbackCase() *TxRollbackCase

type TxStoreBlockCase

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

StoreBlock

func NewStoreBlockCase

func NewStoreBlockCase(
	blockHash *common.Hash,
	blockBytes []byte,
	autoRollback bool) *TxStoreBlockCase

type WorkFlow

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

WorkFlow

func NewWorkFlow

func NewWorkFlow(
	db database.Database) *WorkFlow

Jump to

Keyboard shortcuts

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