Debian Codegraph @

vsock_others_test.go

raw
1 //go:build !linux && !windows
2 // +build !linux,!windows
3
4 package vsock
5
6 import (
7 "context"
8 "testing"
9 )
10
11 func TestUnimplemented(t *testing.T) {
12 want := errUnimplemented
13
14 if _, got := ContextID(); want != got {
15 t.Fatalf("unexpected error from ContextID:\n- want: %v\n- got: %v",
16 want, got)
17 }
18
19 if _, got := listen(0, 0, nil); want != got {
20 t.Fatalf("unexpected error from listen:\n- want: %v\n- got: %v",
21 want, got)
22 }
23
24 if _, got := dial(context.Background(), 0, 0, nil); want != got {
25 t.Fatalf("unexpected error from dial:\n- want: %v\n- got: %v",
26 want, got)
27 }
28 }