Debian Codegraph @

gopls/internal/test/integration/misc/settings_test.go

raw symbols SCIP
1 // Copyright 2022 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 package misc
6
7 import (
8 "testing"
9
10 . "golang.org/x/tools/gopls/internal/test/integration"
11 )
12
13 func TestEmptyDirectoryFilters_Issue51843(t *testing.T) {
14 const src = `
15 -- go.mod --
16 module mod.com
17
18 go 1.12
19 -- main.go --
20 package main
21
22 func main() {
23 }
24 `
25
26 WithOptions(
27 Settings{"directoryFilters": []string{""}},
28 ).Run(t, src, func(t *testing.T, env *Env) {
29 // No need to do anything. Issue golang/go#51843 is triggered by the empty
30 // directory filter above.
31 })
32 }