From 286c38bd1ae34870c40986e8ddebfd65d6e5049e Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Thu, 13 Jun 2024 20:30:13 +0200 Subject: pkg/stats: split out pkg/stats/sample This will reduce the number of dependencies needed for the main syzkaller tools. --- tools/syz-testbed/table_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tools/syz-testbed/table_test.go') 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) -- cgit mrf-deployment