(b *testing.B)
| 225 | } |
| 226 | |
| 227 | func BenchmarkProgramInfo(b *testing.B) { |
| 228 | b.ReportAllocs() |
| 229 | |
| 230 | spec := fixupProgramSpec(basicProgramSpec) |
| 231 | prog := mustNewProgram(b, spec, nil) |
| 232 | |
| 233 | for b.Loop() { |
| 234 | if _, err := newProgramInfoFromFd(prog.fd); err != nil { |
| 235 | b.Fatal(err) |
| 236 | } |
| 237 | } |
| 238 | } |
| 239 | |
| 240 | func TestProgramInfoProc(t *testing.T) { |
| 241 | spec := fixupProgramSpec(basicProgramSpec) |
nothing calls this directly
no test coverage detected
searching dependent graphs…