namespace

package
v2.0.0-pre.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package namespace implements utilities common to implementations of NamespaceDetector.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestDetector

func TestDetector(t *testing.T, detector detectors.NamespaceDetector, testData []TestData)

TestDetector runs a detector on each provided instance of TestData and asserts the output to be equal to the expected output.

Types

type TestData

type TestData struct {
	Data              map[string][]byte
	ExpectedNamespace *database.Namespace
}

TestData represents the data used to test an implementation of NameSpaceDetector.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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