test(skills): cover Windows same-file identity seam with synthetic info
skillPathSameFileIdentityImpl on Windows always returns false and is never reached through skillPathIdentityProven (which uses file IDs exclusively). Add a direct seam call with synthetic os.FileInfo to exercise the Windows return-false path and the Unix os.SameFile path with nil Sys().
This commit is contained in:
@@ -456,6 +456,12 @@ func TestCrossPlatformCoverageSkillPublicationFailureEdges(t *testing.T) {
|
||||
t.Fatal("empty incarnation")
|
||||
}
|
||||
})
|
||||
t.Run("synthetic info does not match same-file identity", func(t *testing.T) {
|
||||
fake := skillPathFakeInfo{}
|
||||
if skillPathSameFileIdentity(fake, fake) {
|
||||
t.Fatal("synthetic info should not match")
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user