(path string, expected [sha256.Size]byte)
| 1585 | } |
| 1586 | |
| 1587 | func pathMatchesSHA256(path string, expected [sha256.Size]byte) bool { |
| 1588 | if !regularRuntimeFile(path) { |
| 1589 | return false |
| 1590 | } |
| 1591 | actual, err := fileSHA256(path) |
| 1592 | return err == nil && actual == expected |
| 1593 | } |
| 1594 | |
| 1595 | func runtimeSetLockToken() (string, error) { |
| 1596 | raw := make([]byte, runtimeSetLockTokenSize) |
no test coverage detected