diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2023-02-10 11:14:17 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2023-02-10 14:34:44 +0100 |
| commit | 0241baba08ba2fd732e46a9634434154d58092e3 (patch) | |
| tree | 1095c9b1ef242c6e1715f5e75818b5879a830db3 /pkg/subsystem/linux/parents_test.go | |
| parent | d9997523a37a026098016ff4f0ecddfcf5c0d4b4 (diff) | |
pkg/subsystem: extract names after all preprocessing
In the previous steps we eliminate some of the extracted subsystems. It
helps to have fewer contention while assigning the names.
As a result, we need to only rely on emails during parents
trasnformations.
Diffstat (limited to 'pkg/subsystem/linux/parents_test.go')
| -rw-r--r-- | pkg/subsystem/linux/parents_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/subsystem/linux/parents_test.go b/pkg/subsystem/linux/parents_test.go index 06f7e1a3c..f1942671d 100644 --- a/pkg/subsystem/linux/parents_test.go +++ b/pkg/subsystem/linux/parents_test.go @@ -39,7 +39,8 @@ func TestDropDuplicateSubsystems(t *testing.T) { expected = append(expected, kernel) // Fully overlap. - sameA, sameB := &entity.Subsystem{Name: "SameA"}, &entity.Subsystem{Name: "SameB"} + sameA := &entity.Subsystem{Lists: []string{"SameA@gmail.com"}} + sameB := &entity.Subsystem{Lists: []string{"SameB@gmail.com"}} matrix.Record(kernel, sameA, sameB) matrix.Record(kernel, sameA, sameB) matrix.Record(kernel, sameA, sameB) |
