aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/tls/fipsonly/fipsonly_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/crypto/tls/fipsonly/fipsonly_test.go')
-rw-r--r--src/crypto/tls/fipsonly/fipsonly_test.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/crypto/tls/fipsonly/fipsonly_test.go b/src/crypto/tls/fipsonly/fipsonly_test.go
new file mode 100644
index 00000000000..facd24807dc
--- /dev/null
+++ b/src/crypto/tls/fipsonly/fipsonly_test.go
@@ -0,0 +1,16 @@
+// Copyright 2017 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package fipsonly
+
+import (
+ "crypto/internal/boring/fipstls"
+ "testing"
+)
+
+func Test(t *testing.T) {
+ if !fipstls.Required() {
+ t.Fatal("fipstls.Required() = false, must be true")
+ }
+}