(t *testing.T)
| 72 | } |
| 73 | |
| 74 | func TestFlameGraph(t *testing.T) { |
| 75 | maybeSkipBrowserTest(t) |
| 76 | |
| 77 | prof := makeFakeProfile() |
| 78 | server := makeTestServer(t, prof) |
| 79 | ctx := newContext(context.Background(), t) |
| 80 | |
| 81 | var ignored []byte // Some chromedp.Evaluate() versions wants non-nil result argument |
| 82 | err := chromedp.Run(ctx, |
| 83 | chromedp.Navigate(server.URL), |
| 84 | chromedp.Evaluate(jsTestFixture, &ignored), |
| 85 | eval(t, jsCheckFlame), |
| 86 | ) |
| 87 | if err != nil { |
| 88 | t.Fatal(err) |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | //go:embed testdata/testflame.js |
| 93 | var jsCheckFlame string |
nothing calls this directly
no test coverage detected
searching dependent graphs…