Documentation ¶
Index ¶
- Variables
- func AssertConfigRead(t *testing.T, configs map[TestConfigReaderIdentifier]string, ...) map[TestConfigReaderIdentifier]interface{}
- func AssertConfigReadEquals(t *testing.T, configs map[TestConfigReaderIdentifier]string, ...)
- func TestReadConfigForIdentifier(t *testing.T, identifier TestConfigReaderIdentifier, configContent string, ...) interface{}
- type TestConfigReaderIdentifier
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TestConfigReaders = map[TestConfigReaderIdentifier]config.ConfigReader{ TestTOMLIdentifier: toml.ConfigReader, TestYAMLIdentifier: yaml.ConfigReader, TestJSONIdentifier: json.ConfigReader, } )
Functions ¶
func AssertConfigRead ¶
func AssertConfigRead(t *testing.T, configs map[TestConfigReaderIdentifier]string, expectedConfig interface{}) map[TestConfigReaderIdentifier]interface{}
func AssertConfigReadEquals ¶
func AssertConfigReadEquals(t *testing.T, configs map[TestConfigReaderIdentifier]string, expectedConfig interface{})
func TestReadConfigForIdentifier ¶
func TestReadConfigForIdentifier(t *testing.T, identifier TestConfigReaderIdentifier, configContent string, expectedConfig interface{}) interface{}
Types ¶
type TestConfigReaderIdentifier ¶
type TestConfigReaderIdentifier int
const ( TestTOMLIdentifier TestConfigReaderIdentifier = iota TestYAMLIdentifier TestJSONIdentifier )
Click to show internal directories.
Click to hide internal directories.