diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2023-01-17 19:20:37 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2023-02-10 14:34:44 +0100 |
| commit | ba1c7407eaa0c09e93d8f319c9e7e65bdf0187d3 (patch) | |
| tree | f7348e12a2c86a7e1858412c4b206882d15b2003 /pkg/subsystem/linux/subsystems_test.go | |
| parent | 4c1f201b6fc2cc30625d3c706b1f45cc68ef0223 (diff) | |
pkg/subsystem/linux: extract names for subsystems
Extract the short subsystem name from the mailing list email.
Stip the common prefixes and suffixes and make sure there are no
duplicates.
As a fallback, assign the whole list email address as a subsystem name.
Diffstat (limited to 'pkg/subsystem/linux/subsystems_test.go')
| -rw-r--r-- | pkg/subsystem/linux/subsystems_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/subsystem/linux/subsystems_test.go b/pkg/subsystem/linux/subsystems_test.go index f5699f26e..caf675244 100644 --- a/pkg/subsystem/linux/subsystems_test.go +++ b/pkg/subsystem/linux/subsystems_test.go @@ -25,17 +25,21 @@ func TestGroupLinuxSubsystems(t *testing.T) { } expected := []*entity.Subsystem{ { + Name: "fs", Lists: []string{"linux-fsdevel@vger.kernel.org"}, Maintainers: []string{"email_vfs@email.com"}, }, { + Name: "ext4", Lists: []string{"linux-ext4@vger.kernel.org"}, Maintainers: []string{"email_ext4@email.com", "email_ext4_2@email.com"}, }, { + Name: "mm", Lists: []string{"linux-mm@kvack.org"}, }, { + Name: "kernel", Lists: []string{"linux-kernel@vger.kernel.org"}, Maintainers: []string{"email_rest@email.com"}, }, |
