diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-02-26 23:43:02 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-26 23:43:02 -0800 |
| commit | 085bde6889925b486291ddf1450b6bb6c8562a8f (patch) | |
| tree | 02f7a49b4378dc2387b825bfc19825405f4502ca /lib/std/crypto/utils.zig | |
| parent | 4e2570baafb587c679ee0fc5e113ddeb36522a5d (diff) | |
| parent | 726a1149e05669e5cc05a16ce877bbb2be787e39 (diff) | |
| download | zig-085bde6889925b486291ddf1450b6bb6c8562a8f.tar.gz zig-085bde6889925b486291ddf1450b6bb6c8562a8f.zip | |
Merge pull request #19087 from squeek502/redundant-test-naming
Remove redundant test name prefixes now that test names are fully qualified
Diffstat (limited to 'lib/std/crypto/utils.zig')
| -rw-r--r-- | lib/std/crypto/utils.zig | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/std/crypto/utils.zig b/lib/std/crypto/utils.zig index 85e0730a44..37f2b06a5e 100644 --- a/lib/std/crypto/utils.zig +++ b/lib/std/crypto/utils.zig @@ -138,7 +138,7 @@ pub inline fn secureZero(comptime T: type, s: []T) void { @memset(@as([]volatile T, s), 0); } -test "crypto.utils.timingSafeEql" { +test "timingSafeEql" { var a: [100]u8 = undefined; var b: [100]u8 = undefined; random.bytes(a[0..]); @@ -148,7 +148,7 @@ test "crypto.utils.timingSafeEql" { try testing.expect(timingSafeEql([100]u8, a, b)); } -test "crypto.utils.timingSafeEql (vectors)" { +test "timingSafeEql (vectors)" { if (@import("builtin").zig_backend == .stage2_x86_64) return error.SkipZigTest; var a: [100]u8 = undefined; @@ -162,7 +162,7 @@ test "crypto.utils.timingSafeEql (vectors)" { try testing.expect(timingSafeEql(@Vector(100, u8), v1, v3)); } -test "crypto.utils.timingSafeCompare" { +test "timingSafeCompare" { var a = [_]u8{10} ** 32; var b = [_]u8{10} ** 32; try testing.expectEqual(timingSafeCompare(u8, &a, &b, .big), .eq); @@ -175,7 +175,7 @@ test "crypto.utils.timingSafeCompare" { try testing.expectEqual(timingSafeCompare(u8, &a, &b, .little), .lt); } -test "crypto.utils.timingSafe{Add,Sub}" { +test "timingSafe{Add,Sub}" { const len = 32; var a: [len]u8 = undefined; var b: [len]u8 = undefined; @@ -195,7 +195,7 @@ test "crypto.utils.timingSafe{Add,Sub}" { } } -test "crypto.utils.secureZero" { +test "secureZero" { var a = [_]u8{0xfe} ** 8; var b = [_]u8{0xfe} ** 8; |
