(t *testing.T)
| 847 | } |
| 848 | |
| 849 | func TestParseCommandLineWithMissingConfig(t *testing.T) { |
| 850 | // Parse command line options with unknown sync gateway configuration file |
| 851 | args := []string{"sync_gateway", "missing-sync-gateway.conf"} |
| 852 | config, err := ParseCommandLine(base.TestCtx(t), args, flag.ContinueOnError) |
| 853 | require.Error(t, err, "Trying to read configuration file which doesn't exist") |
| 854 | assert.Nil(t, config) |
| 855 | } |
| 856 | |
| 857 | func TestParseCommandLineWithBadConfigContent(t *testing.T) { |
| 858 | content := `{"adminInterface":"127.0.0.1:4985","interface":"0.0.0.0:4984", |
nothing calls this directly
no test coverage detected