From 95871dcc45f6531b4c692ff892aad56bdd95e16f Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Fri, 10 Feb 2023 12:14:36 +0100 Subject: pkg/subsystem: restructure the package Remove the entity and match subpackages. Regenerate the linux.go file. --- pkg/subsystem/linux/subsystems_test.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'pkg/subsystem/linux/subsystems_test.go') diff --git a/pkg/subsystem/linux/subsystems_test.go b/pkg/subsystem/linux/subsystems_test.go index f13009fad..cbc4b9699 100644 --- a/pkg/subsystem/linux/subsystems_test.go +++ b/pkg/subsystem/linux/subsystems_test.go @@ -8,8 +8,7 @@ import ( "testing" "testing/fstest" - "github.com/google/syzkaller/pkg/subsystem/entity" - "github.com/google/syzkaller/pkg/subsystem/match" + "github.com/google/syzkaller/pkg/subsystem" "github.com/stretchr/testify/assert" ) @@ -26,7 +25,7 @@ func TestGroupLinuxSubsystems(t *testing.T) { // It complicates the test, so let's skip it here. s.Parents = nil } - expected := []*entity.Subsystem{ + expected := []*subsystem.Subsystem{ { Name: "fs", Lists: []string{"linux-fsdevel@vger.kernel.org"}, @@ -88,7 +87,7 @@ func TestLinuxSubsystemPaths(t *testing.T) { if err != nil { t.Fatal(err) } - matcher := match.MakePathMatcher(subsystems) + matcher := subsystem.MakePathMatcher(subsystems) tests := []struct { path string list []string -- cgit mrf-deployment