Reset master to testing content
This commit is contained in:
1 parent
0f2587b719
commit
42afa2a56c
1483 files changed
+145308
-938069
No files matched your search
@@ -0,0 +1,21 @@
|
||||
//go:build !brlapi || !cgo
|
||||
|
||||
package braille
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"errors"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestDiagnosticUnavailable(t *testing.T) {
|
||||
var output bytes.Buffer
|
||||
err := Diagnostic(context.Background(), New(), &output)
|
||||
if !errors.Is(err, ErrUnavailable) {
|
||||
t.Fatalf("error: %v", err)
|
||||
}
|
||||
if output.Len() != 0 {
|
||||
t.Fatal("unavailable backend reported connected")
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user