diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2024-06-13 20:30:13 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2024-06-14 08:29:50 +0000 |
| commit | 286c38bd1ae34870c40986e8ddebfd65d6e5049e (patch) | |
| tree | 6d183001c80bf66a4f079a3399e6d140480b36ca /tools/syz-testbed/table_test.go | |
| parent | a9616ff57d4ef2794b54e02c26315c739ca8bc85 (diff) | |
pkg/stats: split out pkg/stats/sample
This will reduce the number of dependencies needed for the main
syzkaller tools.
Diffstat (limited to 'tools/syz-testbed/table_test.go')
| -rw-r--r-- | tools/syz-testbed/table_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/syz-testbed/table_test.go b/tools/syz-testbed/table_test.go index fb07e7804..313802819 100644 --- a/tools/syz-testbed/table_test.go +++ b/tools/syz-testbed/table_test.go @@ -6,16 +6,16 @@ package main import ( "testing" - "github.com/google/syzkaller/pkg/stats" + "github.com/google/syzkaller/pkg/stats/sample" "github.com/stretchr/testify/assert" ) func TestRelativeValues(t *testing.T) { table := NewTable("", "A", "B") - table.Set("row1", "A", NewValueCell(&stats.Sample{Xs: []float64{2, 2}})) - table.Set("row1", "B", NewValueCell(&stats.Sample{Xs: []float64{3, 3}})) + table.Set("row1", "A", NewValueCell(&sample.Sample{Xs: []float64{2, 2}})) + table.Set("row1", "B", NewValueCell(&sample.Sample{Xs: []float64{3, 3}})) // Don't set row2/A. - table.Set("row2", "B", NewValueCell(&stats.Sample{Xs: []float64{1, 1}})) + table.Set("row2", "B", NewValueCell(&sample.Sample{Xs: []float64{1, 1}})) err := table.SetRelativeValues("A") assert.NoError(t, err) |
