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/maintainers_test.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'pkg/subsystem/linux/maintainers_test.go') diff --git a/pkg/subsystem/linux/maintainers_test.go b/pkg/subsystem/linux/maintainers_test.go index dc3299dbf..676bbcda1 100644 --- a/pkg/subsystem/linux/maintainers_test.go +++ b/pkg/subsystem/linux/maintainers_test.go @@ -8,8 +8,7 @@ import ( "testing" "github.com/google/go-cmp/cmp" - "github.com/google/syzkaller/pkg/subsystem/entity" - "github.com/google/syzkaller/pkg/subsystem/match" + "github.com/google/syzkaller/pkg/subsystem" ) func TestRecordToPathRule(t *testing.T) { @@ -127,8 +126,8 @@ func TestRecordToPathRule(t *testing.T) { for _, loopTest := range tests { test := loopTest t.Run(test.name, func(t *testing.T) { - pm := match.MakePathMatcher([]*entity.Subsystem{ - {PathRules: []entity.PathRule{test.record.ToPathRule()}}, + pm := subsystem.MakePathMatcher([]*subsystem.Subsystem{ + {PathRules: []subsystem.PathRule{test.record.ToPathRule()}}, }) for _, path := range test.match { if len(pm.Match(path)) != 1 { -- cgit mrf-deployment