test: add GetAccountVirtualFilesByPath test

This commit is contained in:
Noah Hsu
2022-06-14 22:23:33 +08:00
parent 097b516dc5
commit 5780d9d834
2 changed files with 45 additions and 0 deletions

13
pkg/utils/slice.go Normal file
View File

@ -0,0 +1,13 @@
package utils
func SliceEqual[T comparable](a, b []T) bool {
if len(a) != len(b) {
return false
}
for i, v := range a {
if v != b[i] {
return false
}
}
return true
}