luci: go.chromium.org/luci/common/isolatedclient/isolatedfake Index | Files

package isolatedfake

import "go.chromium.org/luci/common/isolatedclient/isolatedfake"

Package isolatedfake implements an in-process fake Isolated server for integration testing.

Index

Package Files

isolatedfake.go

type IsolatedFake Uses

type IsolatedFake interface {
    http.Handler
    // Contents returns all the uncompressed data on the fake isolated server.
    Contents() map[isolated.HexDigest][]byte
    // Inject adds uncompressed data in the fake isolated server.
    Inject(data []byte) isolated.HexDigest
    Error() error
}

IsolatedFake is a functional fake in-memory isolated server.

func New Uses

func New() IsolatedFake

New create a HTTP router that implements an isolated server.

Package isolatedfake imports 12 packages (graph) and is imported by 2 packages. Updated 2018-08-19. Refresh now. Tools for package owners.