type mockAffinityStore … func (m *mockAffinityStore) GetAffinity(podUID string, containerName string) topologymanager.TopologyHint { … } func (m *mockAffinityStore) GetPolicy() topologymanager.Policy { … } func makeNUMADevice(id string, numa int) pluginapi.Device { … } func makeSocketMask(sockets ...int) bitmask.BitMask { … } func TestGetTopologyHints(t *testing.T) { … } func TestTopologyAlignedAllocation(t *testing.T) { … } func TestGetPreferredAllocationParameters(t *testing.T) { … } func TestGetPodDeviceRequest(t *testing.T) { … } func TestGetPodTopologyHints(t *testing.T) { … } type topologyHintTestCase … func getCommonTestCases() []topologyHintTestCase { … } func getPodScopeTestCases() []topologyHintTestCase { … }