(t *testing.T)
| 22 | ) |
| 23 | |
| 24 | func TestContextConfigSetAsync(t *testing.T) { |
| 25 | tests := []bool{false, true} |
| 26 | for _, test := range tests { |
| 27 | t.Run(fmt.Sprint(test), func(t *testing.T) { |
| 28 | opt := &ContextOptions{Async: test} |
| 29 | if _, err := NewContext(opt); err != nil { |
| 30 | t.Fatal(err) |
| 31 | } |
| 32 | }) |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | func TestContextConfigListDevices(t *testing.T) { |
| 37 | c, err := NewContext(nil) |
nothing calls this directly
no test coverage detected