luci: Index | Files

package isolatedfake

import ""

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


Package Files


type IsolatedFake Uses

type IsolatedFake interface {
    // Contents returns all the uncompressed data on the fake isolated server,
    // per namespace.
    Contents() map[string]map[isolated.HexDigest][]byte
    // Inject adds uncompressed data in the fake isolated server.
    Inject(namespace string, 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 2019-04-19. Refresh now. Tools for package owners.