Debian Codegraph @

internal/testutils/testmain/windows_test.go

raw symbols SCIP
1 package testmain
2
3 import (
4 "bytes"
5 "compress/gzip"
6 "os"
7 "testing"
8
9 "github.com/go-quicktest/qt"
10 )
11
12 func TestSummariseWPRTrace(t *testing.T) {
13 f, err := os.Open("testdata/trace.xml.gz")
14 qt.Assert(t, qt.IsNil(err))
15 defer f.Close()
16
17 trace, err := gzip.NewReader(f)
18 qt.Assert(t, qt.IsNil(err))
19
20 var buf bytes.Buffer
21 qt.Assert(t, qt.IsNil(summariseWPRTrace(trace, &buf)))
22 t.Log("\n", buf.String())
23 }