| author | |
| committer | |
| log | 3f1c51ca906719fe2a064a73295ada230e34f1c2 |
| tree | 729f9ef62d288efb160e4783a5b2dd1ef00dc698 |
| parent | 08a8aa100d73bd87e6c39563d8f5c6186217afb3 |
Tests that only reference decls for the purpose of analyzing more tests
should be unnamed, otherwise trying to filter for just a referenced test
can become impossible depending on the names.8 files changed, 8 insertions(+), 8 deletions(-)
lib/std/Thread.zig+1-1| ... | @@ -1141,7 +1141,7 @@ test "setName, getName" { | ... | @@ -1141,7 +1141,7 @@ test "setName, getName" { |
| 1141 | thread.join(); | 1141 | thread.join(); |
| 1142 | } | 1142 | } |
| 1143 | 1143 | ||
| 1144 | test "std.Thread" { | 1144 | test { |
| 1145 | // Doesn't use testing.refAllDecls() since that would pull in the compileError spinLoopHint. | 1145 | // Doesn't use testing.refAllDecls() since that would pull in the compileError spinLoopHint. |
| 1146 | _ = Futex; | 1146 | _ = Futex; |
| 1147 | _ = ResetEvent; | 1147 | _ = ResetEvent; |
lib/std/atomic.zig+1-1| ... | @@ -7,7 +7,7 @@ pub const Stack = @import("atomic/stack.zig").Stack; | ... | @@ -7,7 +7,7 @@ pub const Stack = @import("atomic/stack.zig").Stack; |
| 7 | pub const Queue = @import("atomic/queue.zig").Queue; | 7 | pub const Queue = @import("atomic/queue.zig").Queue; |
| 8 | pub const Atomic = @import("atomic/Atomic.zig").Atomic; | 8 | pub const Atomic = @import("atomic/Atomic.zig").Atomic; |
| 9 | 9 | ||
| 10 | test "std.atomic" { | 10 | test { |
| 11 | _ = @import("atomic/stack.zig"); | 11 | _ = @import("atomic/stack.zig"); |
| 12 | _ = @import("atomic/queue.zig"); | 12 | _ = @import("atomic/queue.zig"); |
| 13 | _ = @import("atomic/Atomic.zig"); | 13 | _ = @import("atomic/Atomic.zig"); |
lib/std/crypto/pcurves/p256.zig+1-1| ... | @@ -473,6 +473,6 @@ pub const AffineCoordinates = struct { | ... | @@ -473,6 +473,6 @@ pub const AffineCoordinates = struct { |
| 473 | } | 473 | } |
| 474 | }; | 474 | }; |
| 475 | 475 | ||
| 476 | test "p256" { | 476 | test { |
| 477 | _ = @import("tests/p256.zig"); | 477 | _ = @import("tests/p256.zig"); |
| 478 | } | 478 | } |
lib/std/crypto/pcurves/p384.zig+1-1| ... | @@ -473,7 +473,7 @@ pub const AffineCoordinates = struct { | ... | @@ -473,7 +473,7 @@ pub const AffineCoordinates = struct { |
| 473 | } | 473 | } |
| 474 | }; | 474 | }; |
| 475 | 475 | ||
| 476 | test "p384" { | 476 | test { |
| 477 | if (@import("builtin").zig_backend == .stage2_c) return error.SkipZigTest; | 477 | if (@import("builtin").zig_backend == .stage2_c) return error.SkipZigTest; |
| 478 | 478 | ||
| 479 | _ = @import("tests/p384.zig"); | 479 | _ = @import("tests/p384.zig"); |
lib/std/crypto/pcurves/secp256k1.zig+1-1| ... | @@ -551,7 +551,7 @@ pub const AffineCoordinates = struct { | ... | @@ -551,7 +551,7 @@ pub const AffineCoordinates = struct { |
| 551 | } | 551 | } |
| 552 | }; | 552 | }; |
| 553 | 553 | ||
| 554 | test "secp256k1" { | 554 | test { |
| 555 | if (@import("builtin").zig_backend == .stage2_c) return error.SkipZigTest; | 555 | if (@import("builtin").zig_backend == .stage2_c) return error.SkipZigTest; |
| 556 | 556 | ||
| 557 | _ = @import("tests/secp256k1.zig"); | 557 | _ = @import("tests/secp256k1.zig"); |
lib/std/hash.zig+1-1| ... | @@ -36,7 +36,7 @@ const xxhash = @import("hash/xxhash.zig"); | ... | @@ -36,7 +36,7 @@ const xxhash = @import("hash/xxhash.zig"); |
| 36 | pub const XxHash64 = xxhash.XxHash64; | 36 | pub const XxHash64 = xxhash.XxHash64; |
| 37 | pub const XxHash32 = xxhash.XxHash32; | 37 | pub const XxHash32 = xxhash.XxHash32; |
| 38 | 38 | ||
| 39 | test "hash" { | 39 | test { |
| 40 | _ = adler; | 40 | _ = adler; |
| 41 | _ = auto_hash; | 41 | _ = auto_hash; |
| 42 | _ = crc; | 42 | _ = crc; |
lib/std/math/complex.zig+1-1| ... | @@ -189,7 +189,7 @@ test "complex.magnitude" { | ... | @@ -189,7 +189,7 @@ test "complex.magnitude" { |
| 189 | try testing.expect(math.approxEqAbs(f32, c, 5.83095, epsilon)); | 189 | try testing.expect(math.approxEqAbs(f32, c, 5.83095, epsilon)); |
| 190 | } | 190 | } |
| 191 | 191 | ||
| 192 | test "complex.cmath" { | 192 | test { |
| 193 | _ = @import("complex/abs.zig"); | 193 | _ = @import("complex/abs.zig"); |
| 194 | _ = @import("complex/acosh.zig"); | 194 | _ = @import("complex/acosh.zig"); |
| 195 | _ = @import("complex/acos.zig"); | 195 | _ = @import("complex/acos.zig"); |
lib/std/meta.zig+1-1| ... | @@ -10,7 +10,7 @@ pub const TrailerFlags = @import("meta/trailer_flags.zig").TrailerFlags; | ... | @@ -10,7 +10,7 @@ pub const TrailerFlags = @import("meta/trailer_flags.zig").TrailerFlags; |
| 10 | 10 | ||
| 11 | const Type = std.builtin.Type; | 11 | const Type = std.builtin.Type; |
| 12 | 12 | ||
| 13 | test "std.meta.TrailerFlags" { | 13 | test { |
| 14 | _ = TrailerFlags; | 14 | _ = TrailerFlags; |
| 15 | } | 15 | } |
| 16 | 16 |