cstesting

package
v0.1.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package cstesting defines helpers to test Chainscripts.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeSegmentMapID

func ChangeSegmentMapID(s *cs.Segment) *cs.Segment

ChangeSegmentMapID clones a segment and randomly changes its map ID.

func ChangeSegmentState

func ChangeSegmentState(s *cs.Segment) *cs.Segment

ChangeSegmentState clones a segment and randomly changes its state.

func CloneSegment

func CloneSegment(s *cs.Segment) *cs.Segment

CloneSegment clones a segment.

func CreateSegment

func CreateSegment(process, linkHash, mapID, prevLinkHash string, tags []interface{}, priority float64) *cs.Segment

CreateSegment creates a minimal segment.

func RandomBranch

func RandomBranch(s *cs.Segment) *cs.Segment

RandomBranch appends a random segment to a segment.

func RandomSegment

func RandomSegment() *cs.Segment

RandomSegment creates a random segment.

func RandomTags

func RandomTags() []interface{}

RandomTags creates between zero and four random tags.

Types

This section is empty.

Jump to

Keyboard shortcuts

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