fixture

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const BadJSONMissingColon = `{ "foo": "bar", bar" "baz" }`
View Source
const BadJSONMissingComma = `{ "foo": "bar" "bar": "baz" }`
View Source
const BadJSONMissingEndBrace = `{ "foo": "bar"`
View Source
const BadJSONMissingQuote = `{ "foo": "bar", bar": "baz" }`
View Source
const BadJSONMissingStartBrace = `"foo": "bar" }`
View Source
const BadMissingEqualInternalLine = `foo = "bar"
bad value
bar = "baz"`
View Source
const BadMissingEqualOneLine = `foo "bar"`
View Source
const BadMissingEqualSecondLine = `foo = "bar"
bad value`
View Source
const GoodConfigfileHCL = `# variable answers
child1.username="foo"
child1.password="bar"
rootuser="admin"
`
View Source
const GoodConfigfileJSON = `{
	"child1.username": "foo",
	"child1.password": "bar",
	"rootuser": "admin"
}`
View Source
const JSONEmpty = ""
View Source
const JSONEmptyObject = "{}"

Variables

View Source
var JSONFiles = map[pack.ID][]*pack.File{
	"mypack": {
		{
			Name:    "tc1.json",
			Content: []byte(BadJSONMissingStartBrace),
			Path:    "/tmp/tc1.json",
		},
		{
			Name:    "tc2.json",
			Content: []byte(BadJSONMissingEndBrace),
			Path:    "/tmp/tc2.json",
		},
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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