(t *testing.T)
| 70 | } |
| 71 | |
| 72 | func TestBuildInterfaceStats(t *testing.T) { |
| 73 | stats := BuildInterfaceStats("wg0", "wg0", 15, 9) |
| 74 | if len(stats) != 2 { |
| 75 | t.Fatalf("expected 2 stats, got %d", len(stats)) |
| 76 | } |
| 77 | |
| 78 | if stats[0].GetLink() != "wg0" || stats[1].GetLink() != "wg0" { |
| 79 | t.Fatalf("expected link=wg0 for all entries") |
| 80 | } |
| 81 | } |
nothing calls this directly
no test coverage detected