gitlab.com/gitlab-org/labkit@v1.21.0/fips/notfips_test.go (about) 1 //go:build !fips 2 // +build !fips 3 4 package fips 5 6 import ( 7 "testing" 8 9 "github.com/stretchr/testify/require" 10 ) 11 12 func TestCheck(t *testing.T) { 13 // Testing log output is racy with logrus, but calling this is 14 // useful to ensure FIPS and non-FIPS systems have this implemented. 15 require.False(t, Check()) 16 } 17 18 func TestEnabledk(t *testing.T) { 19 require.False(t, Enabled()) 20 }