(t *testing.T)
| 135 | } |
| 136 | |
| 137 | func TestCheckCryptoFipsEnabled(t *testing.T) { |
| 138 | m := mountEntry{ |
| 139 | Mount: &configs.Mount{ |
| 140 | Destination: "/proc/sys/crypto/fips_enabled", |
| 141 | Source: "tmpfs", |
| 142 | Device: "tmpfs", |
| 143 | }, |
| 144 | } |
| 145 | dest := "/rootfs/proc/sys/crypto/fips_enabled" |
| 146 | err := checkProcMount("/rootfs", dest, m) |
| 147 | if err != nil { |
| 148 | t.Fatalf("/proc/sys/crypto/fips_enabled should not return an error: %v", err) |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | func TestNeedsSetupDev(t *testing.T) { |
| 153 | config := &configs.Config{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…