(t *testing.T)
| 3 | import "testing" |
| 4 | |
| 5 | func TestLoadPlugins(t *testing.T) { |
| 6 | if testing.Short() { |
| 7 | t.Skip() |
| 8 | } |
| 9 | |
| 10 | o := Options{ |
| 11 | PluginDirs: []string{"./_test_plugins"}, |
| 12 | FilterPlugins: [][]string{{"filter_noop"}}, |
| 13 | } |
| 14 | if err := o.findAndLoadPlugins(); err != nil { |
| 15 | t.Fatalf("Failed to load plugins: %s", err) |
| 16 | } |
| 17 | } |
| 18 | |
| 19 | func TestLoadPluginsFail(t *testing.T) { |
| 20 | if testing.Short() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…