master
go 18 lines 378 Bytes
Raw
1 // SPDX-License-Identifier: GPL-3.0-or-later
2
3 package l2topology
4
5 import (
6 "testing"
7
8 "github.com/stretchr/testify/require"
9 )
10
11 func TestFilterManagedDeviceHints_ReturnsNilWhenNoManagedHintMatches(t *testing.T) {
12 filtered := filterManagedDeviceHints(
13 []string{"ghost-switch", "unmanaged-switch"},
14 map[string]struct{}{"managed-switch": {}},
15 )
16
17 require.Nil(t, filtered)
18 }