(t *testing.T)
| 24 | ) |
| 25 | |
| 26 | func TestConfigPrint(t *testing.T) { |
| 27 | c := NewWithOpts(WithRun()) |
| 28 | err := c.flags.Parse([]string{"--eventsource.enable-thread=false", "--config-file=_fixtures/fibratus.yml"}) |
| 29 | require.NoError(t, c.viper.BindPFlags(c.flags)) |
| 30 | require.NoError(t, err) |
| 31 | require.NoError(t, c.TryLoadFile(c.GetConfigFile())) |
| 32 | opts := c.Print() |
| 33 | require.NotEmpty(t, opts) |
| 34 | } |
nothing calls this directly
no test coverage detected