Debian Codegraph @

internal/dirent/dirent_test.go

raw symbols SCIP
1 //go:build aix || dragonfly || freebsd || (js && wasm) || linux || netbsd || openbsd || solaris
2
3 package direntscip-go gomod github.com/charlievieth/fastwalk . `github.com/charlievieth/fastwalk/internal/dirent`/
4
5 import "testingscip-go gomod github.com/golang/go/src go1.21 testing/"
6
7 func TestReadIntSizescip-go gomod github.com/charlievieth/fastwalk . `github.com/charlievieth/fastwalk/internal/dirent`/TestReadIntSize().(t *testingscip-go gomod github.com/golang/go/src go1.21 testing/.Tscip-go gomod github.com/golang/go/src go1.21 testing/T#) {
8 if i, ok := readIntscip-go gomod github.com/charlievieth/fastwalk . `github.com/charlievieth/fastwalk/internal/dirent`/readInt().(nil, 1, 1); i != 0 || ok {
9 t.Errorfscip-go gomod github.com/golang/go/src go1.21 testing/common#Errorf().("readInt(nil, 1, 1) = %d, %t; want: %d, %t", i, ok, 0, false)
10 }
11 }
12
13 func TestReadIntInvalidSizescip-go gomod github.com/charlievieth/fastwalk . `github.com/charlievieth/fastwalk/internal/dirent`/TestReadIntInvalidSize().(t *testingscip-go gomod github.com/golang/go/src go1.21 testing/.Tscip-go gomod github.com/golang/go/src go1.21 testing/T#) {
14 defer func() {
15 if e := recover(); e == nil {
16 t.Errorfscip-go gomod github.com/golang/go/src go1.21 testing/common#Errorf().("Expected panic for invalid size")
17 }
18 }()
19 readIntscip-go gomod github.com/charlievieth/fastwalk . `github.com/charlievieth/fastwalk/internal/dirent`/readInt().(make([]byte, 32), 0, 9)
20 }