(t *testing.T)
| 191 | } |
| 192 | |
| 193 | func TestDetectDuplicates(t *testing.T) { |
| 194 | plugs := []Plugin{ |
| 195 | mockSubprocessCLIPlugin(t, "foo"), |
| 196 | mockSubprocessCLIPlugin(t, "bar"), |
| 197 | } |
| 198 | if err := detectDuplicates(plugs); err != nil { |
| 199 | t.Error("no duplicates in the first set") |
| 200 | } |
| 201 | plugs = append(plugs, mockSubprocessCLIPlugin(t, "foo")) |
| 202 | if err := detectDuplicates(plugs); err == nil { |
| 203 | t.Error("duplicates in the second set") |
| 204 | } |
| 205 | } |
| 206 | |
| 207 | func TestLoadAllDir_Empty(t *testing.T) { |
| 208 | emptyDir := t.TempDir() |
nothing calls this directly
no test coverage detected
searching dependent graphs…