MCPcopy Create free account
hub / github.com/containers/image / testPathsAreSameFile

Function testPathsAreSameFile

directory/explicitfilepath/path_test.go:118–124  ·  view source on GitHub ↗
(t *testing.T, path1, path2, description string)

Source from the content-addressed store, hash-verified

116}
117
118func testPathsAreSameFile(t *testing.T, path1, path2, description string) {
119 fi1, err := os.Stat(path1)
120 require.NoError(t, err)
121 fi2, err := os.Stat(path2)
122 require.NoError(t, err)
123 assert.True(t, os.SameFile(fi1, fi2), description)
124}
125
126func runPathResolvingTestCase(t *testing.T, f func(string) (string, error), c pathResolvingTestCase, suffix string) {
127 topDir := t.TempDir()

Callers 1

runPathResolvingTestCaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…