aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/subsystem/linux/names_test.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2023-02-10 12:14:36 +0100
committerAleksandr Nogikh <wp32pw@gmail.com>2023-02-10 14:34:44 +0100
commit95871dcc45f6531b4c692ff892aad56bdd95e16f (patch)
tree95c8ffe8b8a36b1dc9473cc3a07e7286595e0b2f /pkg/subsystem/linux/names_test.go
parent0ee9f5fa4e372b5a2da4ac27418e6c5bccbcaf7a (diff)
pkg/subsystem: restructure the package
Remove the entity and match subpackages. Regenerate the linux.go file.
Diffstat (limited to 'pkg/subsystem/linux/names_test.go')
-rw-r--r--pkg/subsystem/linux/names_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/subsystem/linux/names_test.go b/pkg/subsystem/linux/names_test.go
index 0b2352411..03f9a86d3 100644
--- a/pkg/subsystem/linux/names_test.go
+++ b/pkg/subsystem/linux/names_test.go
@@ -6,7 +6,7 @@ package linux
import (
"testing"
- "github.com/google/syzkaller/pkg/subsystem/entity"
+ "github.com/google/syzkaller/pkg/subsystem"
)
func TestEmailToName(t *testing.T) {
@@ -33,8 +33,8 @@ type subsystemTestInput struct {
outName string
}
-func (sti subsystemTestInput) ToSubsystem() *entity.Subsystem {
- s := &entity.Subsystem{}
+func (sti subsystemTestInput) ToSubsystem() *subsystem.Subsystem {
+ s := &subsystem.Subsystem{}
if sti.email != "" {
s.Lists = append(s.Lists, sti.email)
}
@@ -92,7 +92,7 @@ func TestSetSubsystemNames(t *testing.T) {
for _, test := range tests {
curr := test
t.Run(curr.name, func(t *testing.T) {
- list := []*entity.Subsystem{}
+ list := []*subsystem.Subsystem{}
for _, i := range curr.inputs {
list = append(list, i.ToSubsystem())
}