github.com/TeaOSLab/EdgeNode@v1.3.8/internal/utils/fs/file_test.go (about) 1 // Copyright 2024 GoEdge CDN goedge.cdn@gmail.com. All rights reserved. Official site: https://goedge.cn . 2 3 package fsutils_test 4 5 import ( 6 fsutils "github.com/TeaOSLab/EdgeNode/internal/utils/fs" 7 "github.com/iwind/TeaGo/assert" 8 "testing" 9 ) 10 11 func TestFileFlags(t *testing.T) { 12 var a = assert.NewAssertion(t) 13 a.IsTrue(fsutils.FlagRead&fsutils.FlagRead == fsutils.FlagRead) 14 a.IsTrue(fsutils.FlagWrite&fsutils.FlagWrite != fsutils.FlagRead) 15 a.IsTrue((fsutils.FlagWrite|fsutils.FlagRead)&fsutils.FlagRead == fsutils.FlagRead) 16 }