File: notfips_test.go

package info (click to toggle)
golang-gitlab-gitlab-org-labkit 1.17.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,092 kB
  • sloc: sh: 210; javascript: 49; makefile: 4
file content (20 lines) | stat: -rw-r--r-- 371 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//go:build !fips
// +build !fips

package fips

import (
	"testing"

	"github.com/stretchr/testify/require"
)

func TestCheck(t *testing.T) {
	// Testing log output is racy with logrus, but calling this is
	// useful to ensure FIPS and non-FIPS systems have this implemented.
	require.False(t, Check())
}

func TestEnabledk(t *testing.T) {
	require.False(t, Enabled())
}