MCPcopy
hub / github.com/Velocidex/velociraptor / TestFileMode

Function TestFileMode

utils/filemode_test.go:41–51  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

39)
40
41func TestFileMode(t *testing.T) {
42 for _, tc := range fmTests {
43 out, err := ParseFileMode(tc.in)
44 if tc.is_err {
45 assert.Error(t, err)
46 continue
47 }
48 assert.NoError(t, err)
49 assert.Equal(t, out, tc.out)
50 }
51}

Callers

nothing calls this directly

Calls 4

ErrorFunction · 0.92
NoErrorFunction · 0.92
EqualFunction · 0.92
ParseFileModeFunction · 0.85

Tested by

no test coverage detected