diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2024-07-24 13:50:57 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2024-07-24 14:39:45 +0000 |
| commit | 63e964d2e8f81b4364fdd5fde9ffa74af9d04147 (patch) | |
| tree | 2698626e468651c0af4fa7c540d9f92290a54885 /pkg/html/pages/stats_test.go | |
| parent | bd8900c38af45bfa8f8e451267d0e3548b68e295 (diff) | |
pkg/stat: don't depend on pkg/html/pages
It's useful to collect stats in low-level packages like prog,
but pkg/html/pages recursively depend on prog, so currently it's impossible.
Make pkg/stat not dependent on pkg/html/pages.
Diffstat (limited to 'pkg/html/pages/stats_test.go')
| -rw-r--r-- | pkg/html/pages/stats_test.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/pkg/html/pages/stats_test.go b/pkg/html/pages/stats_test.go new file mode 100644 index 000000000..a5dcce01d --- /dev/null +++ b/pkg/html/pages/stats_test.go @@ -0,0 +1,17 @@ +// Copyright 2024 syzkaller project authors. All rights reserved. +// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. + +package pages + +import ( + "io" + "testing" + + "github.com/google/syzkaller/pkg/stat" +) + +func TestStatsTemplate(t *testing.T) { + if err := StatsTemplate.Execute(io.Discard, stat.RenderGraphs()); err != nil { + t.Fatal(err) + } +} |
