MCPcopy Create free account
hub / github.com/gogs/gogs / TestFileNames

Function TestFileNames

conf/embed_test.go:10–16  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

8)
9
10func TestFileNames(t *testing.T) {
11 names, err := FileNames(".")
12 require.NoError(t, err)
13
14 want := []string{"app.ini", "auth.d", "gitignore", "label", "license", "locale", "readme"}
15 assert.Equal(t, want, names)
16}

Callers

nothing calls this directly

Calls 1

FileNamesFunction · 0.85

Tested by

no test coverage detected