(t *testing.T)
| 150 | } |
| 151 | |
| 152 | func 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 | |
| 181 | func Test_newFilterDoc(t *testing.T) { |
| 182 | const ( |
nothing calls this directly
no test coverage detected