testutil

package
v0.0.0-...-535a2f3 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2018 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Hash1 = Hashes[0]
View Source
var Hashes = [...]struct {
	Hex  string
	Hash checksum.Hash
}{{
	Hex: "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824",
	Hash: checksum.Hash{
		44, 242, 77, 186, 95, 176, 163, 14, 38, 232, 59, 42, 197, 185, 226, 158,
		27, 22, 30, 92, 31, 167, 66, 94, 115, 4, 51, 98, 147, 139, 152, 36,
	},
}, {
	Hex: "cd2eb0837c9b4c962c22d2ff8b5441b7b45805887f051d39bf133b583baf6860",
	Hash: checksum.Hash{
		205, 46, 176, 131, 124, 155, 76, 150, 44, 34, 210, 255, 139, 84, 65, 183,
		180, 88, 5, 136, 127, 5, 29, 57, 191, 19, 59, 88, 59, 175, 104, 96,
	},
}}

Generate hashes in Ruby with:

digest  = Digest::SHA256.digest("foo")
hex     = digest.unpack("H*")
hash    = digest.unpack("C*")

Functions

func Group

func Group(chunks []*scat.Chunk) *scat.Chunk

func ReadChunks

func ReadChunks(ch <-chan procs.Res) (chunks []*scat.Chunk, err error)

func SetGroupErr

func SetGroupErr(c *scat.Chunk, err error)

func TestFinishErrForward

func TestFinishErrForward(t *testing.T, getFinisher getFinisherFn)

Types

type FinishErrProc

type FinishErrProc struct {
	Err error
}

func (FinishErrProc) Finish

func (p FinishErrProc) Finish() error

func (FinishErrProc) Process

func (p FinishErrProc) Process(*scat.Chunk) <-chan procs.Res

type Finisher

type Finisher interface {
	Finish() error
}

Jump to

Keyboard shortcuts

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