MCPcopy Create free account
hub / github.com/AdRoll/baker / TestNewConfigFromTOMLRequiredField

Function TestNewConfigFromTOMLRequiredField

config_api_test.go:159–196  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

157}
158
159func TestNewConfigFromTOMLRequiredField(t *testing.T) {
160 toml := `
161[input]
162name = "List"
163
164[input.config]
165
166[output]
167name = "Dummy"
168 [output.config]
169 param1="this parameter is set"
170 #param2="this parameter is not set"
171`
172 testNewConfigFromTOMLRequiredFields(t, "missing field", toml)
173
174 toml = `
175[input]
176name = "List"
177
178[output]
179name = "Dummy"
180`
181 testNewConfigFromTOMLRequiredFields(t, "nil config", toml)
182
183 toml = `
184 [input]
185 name = "List"
186
187 [input.config]
188
189 [output]
190 name = "Dummy"
191 [output.config]
192 PaRam1="this parameter is set"
193 #param2="this parameter is not set"
194 `
195 testNewConfigFromTOMLRequiredFields(t, "case insensitive", toml)
196}

Callers

nothing calls this directly

Tested by

no test coverage detected