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

Function Test_newInputDoc

help_config_test.go:152–179  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

150}
151
152func Test_newInputDoc(t *testing.T) {
153 const (
154 name = "dummy"
155 help = "This is the high-level doc of the dummy input."
156 )
157
158 desc := InputDesc{
159 Name: name,
160 Config: &dummyConfig{},
161 Help: help,
162 }
163 want := inputDoc{
164 baseDoc: baseDoc{
165 name: name,
166 help: help,
167 keys: dummyKeys,
168 },
169 }
170
171 got, err := newInputDoc(desc)
172 if err != nil {
173 t.Errorf("newInputDoc() error = %v", err)
174 return
175 }
176 if !reflect.DeepEqual(got, want) {
177 t.Errorf("newInputDoc():\ngot:\n%+v\nwant:\n%+v", got, want)
178 }
179}
180
181func Test_newFilterDoc(t *testing.T) {
182 const (

Callers

nothing calls this directly

Calls 1

newInputDocFunction · 0.85

Tested by

no test coverage detected