Documentation ¶
Overview ¶
Package cstesting defines helpers to test Chainscripts.
Index ¶
- func ChangeSegmentMapID(s *cs.Segment) *cs.Segment
- func ChangeSegmentState(s *cs.Segment) *cs.Segment
- func CloneSegment(s *cs.Segment) *cs.Segment
- func CreateSegment(process, linkHash, mapID, prevLinkHash string, tags []interface{}, ...) *cs.Segment
- func RandomBranch(s *cs.Segment) *cs.Segment
- func RandomSegment() *cs.Segment
- func RandomTags() []interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeSegmentMapID ¶
ChangeSegmentMapID clones a segment and randomly changes its map ID.
func ChangeSegmentState ¶
ChangeSegmentState clones a segment and randomly changes its state.
func CreateSegment ¶
func CreateSegment(process, linkHash, mapID, prevLinkHash string, tags []interface{}, priority float64) *cs.Segment
CreateSegment creates a minimal segment.
func RandomBranch ¶
RandomBranch appends a random segment to a segment.
func RandomTags ¶
func RandomTags() []interface{}
RandomTags creates between zero and four random tags.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.