Update filesystem_test.go

This commit is contained in:
lppp04808 2026-03-02 16:27:42 +08:00 committed by GitHub
parent 3cd192db15
commit f3d778a079
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -544,6 +544,7 @@ func TestConcurrencyUpgradeable(t *testing.T) {
// Ensure the internal fs is now a *ConcurrentFS // Ensure the internal fs is now a *ConcurrentFS
_, isConcurrent := upgradedReadTool.fs.(*ConcurrentFS) _, isConcurrent := upgradedReadTool.fs.(*ConcurrentFS)
assert.True(t, isConcurrent, "Internal fileSystem should be upgraded to *ConcurrentFS") assert.True(t, isConcurrent, "Internal fileSystem should be upgraded to *ConcurrentFS")
}
// TestWhitelistFs_AllowsMatchingPaths verifies that whitelistFs allows access to // TestWhitelistFs_AllowsMatchingPaths verifies that whitelistFs allows access to
// paths matching the whitelist patterns while blocking non-matching paths. // paths matching the whitelist patterns while blocking non-matching paths.
func TestWhitelistFs_AllowsMatchingPaths(t *testing.T) { func TestWhitelistFs_AllowsMatchingPaths(t *testing.T) {