MCPcopy
hub / github.com/sqlc-dev/sqlc / TestNotIncludesHiddenFilesAnyPath

Function TestNotIncludesHiddenFilesAnyPath

internal/sql/sqlpath/read_test.go:158–176  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

156}
157
158func TestNotIncludesHiddenFilesAnyPath(t *testing.T) {
159 // Arrange
160 paths := []string{
161 "./testdata/.hiddendir/file1.sql", // pass
162 "./testdata/.hidden.sql", // skip
163 }
164
165 // Act
166 result, err := Glob(paths)
167
168 // Assert
169 expected := []string{filepath.Join("testdata", ".hiddendir", "file1.sql")}
170 if !cmp.Equal(result, expected) {
171 t.Errorf("Expected %v, but got %v", expected, result)
172 }
173 if err != nil {
174 t.Errorf("Expected no error, but got %v", err)
175 }
176}
177
178func TestFollowSymlinks(t *testing.T) {
179 // Arrange

Callers

nothing calls this directly

Calls 3

GlobFunction · 0.85
JoinMethod · 0.45
EqualMethod · 0.45

Tested by

no test coverage detected