fork of https://github.com/sourcegraph/zoekt
0

Configure Feed

Select the types of activity you want to include in your feed.

indexserver: Test Symbols in GetIndexOptions

Change-Id: I485917e33301f879151f3e21efe5b0499490d751

+2 -2
+2 -2
cmd/zoekt-sourcegraph-indexserver/main_test.go
··· 10 10 11 11 func TestGetIndexOptions(t *testing.T) { 12 12 server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { 13 - w.Write([]byte(`{"LargeFiles": ["foo","bar"]}`)) 13 + w.Write([]byte(`{"Symbols": true, "LargeFiles": ["foo","bar"]}`)) 14 14 })) 15 15 defer server.Close() 16 16 ··· 24 24 t.Error("expected non-empty result from large files list") 25 25 } 26 26 27 - want := []string{"-large_file", "foo", "-large_file", "bar"} 27 + want := []string{"-require_ctags", "-large_file", "foo", "-large_file", "bar"} 28 28 if got := opts.toArgs(); !reflect.DeepEqual(got, want) { 29 29 t.Errorf("got unexpected arguments from options\ngot: %v\nwant: %v\n", got, want) 30 30 }