2023-01-27 21:37:20 +00:00
|
|
|
// Copyright (c) Tailscale Inc & AUTHORS
|
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
2020-09-10 23:21:32 +01:00
|
|
|
|
|
|
|
package netstat
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestGet(t *testing.T) {
|
|
|
|
nt, err := Get()
|
|
|
|
if err == ErrNotImplemented {
|
|
|
|
t.Skip("TODO: not implemented")
|
|
|
|
}
|
|
|
|
if err != nil {
|
|
|
|
t.Fatal(err)
|
|
|
|
}
|
|
|
|
for _, e := range nt.Entries {
|
|
|
|
t.Logf("Entry: %+v", e)
|
|
|
|
}
|
|
|
|
}
|