(b *testing.B)
| 23 | ) |
| 24 | |
| 25 | func BenchmarkReaduint64(b *testing.B) { |
| 26 | b.ReportAllocs() |
| 27 | |
| 28 | for i := 0; i < b.N; i++ { |
| 29 | _, err := readUint("/proc/self/loginuid") |
| 30 | if err != nil { |
| 31 | b.Fatal(err) |
| 32 | } |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | func TestReadUint(t *testing.T) { |
| 37 | tDir := t.TempDir() |
nothing calls this directly
no test coverage detected
searching dependent graphs…