1//+build !linux 2 3package netlink 4 5import "testing" 6 7func TestOthersConnUnimplemented(t *testing.T) { 8 c := &conn{} 9 want := errUnimplemented 10 11 if got := newError(0); want != got { 12 t.Fatalf("unexpected error during newError:\n- want: %v\n- got: %v", 13 want, got) 14 } 15 16 if _, _, got := dial(0, nil); want != got { 17 t.Fatalf("unexpected error during dial:\n- want: %v\n- got: %v", 18 want, got) 19 } 20 21 if got := c.Send(Message{}); want != got { 22 t.Fatalf("unexpected error during c.Send:\n- want: %v\n- got: %v", 23 want, got) 24 } 25 26 if got := c.SendMessages(nil); want != got { 27 t.Fatalf("unexpected error during c.SendMessages:\n- want: %v\n- got: %v", 28 want, got) 29 } 30 31 if _, got := c.Receive(); want != got { 32 t.Fatalf("unexpected error during c.Receive:\n- want: %v\n- got: %v", 33 want, got) 34 } 35 36 if got := c.Close(); want != got { 37 t.Fatalf("unexpected error during c.Close:\n- want: %v\n- got: %v", 38 want, got) 39 } 40} 41