agora: github.com/PuerkitoBio/agora/bytecode/testing Index | Files

package testing

import "github.com/PuerkitoBio/agora/bytecode/testing"

Package testing is for internal use only, it groups useful utility functions and variables to help in testing bytecode results.

Index

Package Files

bytecode.go

Variables

var (
    // Useful prefilled expected byte slices
    ExpSig       = []byte{0x2A, 0x60, 0x0A, 0x00}
    ExpZeroInt64 = []byte{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
)

func AppendAny Uses

func AppendAny(b []byte, vals ...interface{}) []byte

func Int64ToByteSlice Uses

func Int64ToByteSlice(i int64) []byte

func SigVer Uses

func SigVer(maj, min int) []byte

func UInt64ToByteSlice Uses

func UInt64ToByteSlice(u uint64) []byte

Package testing imports 3 packages (graph). Updated 2016-07-21. Refresh now. Tools for package owners.