authorgravatar for jacobly@ziglang.orgJacob Young <jacobly@ziglang.org> 2023-04-21 20:46:05-04:00
committergravatar for jacobly@ziglang.orgJacob Young <jacobly@ziglang.org> 2023-04-21 23:08:48-04:00
log3f1c51ca906719fe2a064a73295ada230e34f1c2
tree729f9ef62d288efb160e4783a5b2dd1ef00dc698
parent08a8aa100d73bd87e6c39563d8f5c6186217afb3

std: remove names from incorrectly named tests

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}
11431143
1144test "std.Thread" {1144test {
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;
7pub const Queue = @import("atomic/queue.zig").Queue;7pub const Queue = @import("atomic/queue.zig").Queue;
8pub const Atomic = @import("atomic/Atomic.zig").Atomic;8pub const Atomic = @import("atomic/Atomic.zig").Atomic;
99
10test "std.atomic" {10test {
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};
475475
476test "p256" {476test {
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};
475475
476test "p384" {476test {
477 if (@import("builtin").zig_backend == .stage2_c) return error.SkipZigTest;477 if (@import("builtin").zig_backend == .stage2_c) return error.SkipZigTest;
478478
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};
553553
554test "secp256k1" {554test {
555 if (@import("builtin").zig_backend == .stage2_c) return error.SkipZigTest;555 if (@import("builtin").zig_backend == .stage2_c) return error.SkipZigTest;
556556
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");
36pub const XxHash64 = xxhash.XxHash64;36pub const XxHash64 = xxhash.XxHash64;
37pub const XxHash32 = xxhash.XxHash32;37pub const XxHash32 = xxhash.XxHash32;
3838
39test "hash" {39test {
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}
191191
192test "complex.cmath" {192test {
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;
1010
11const Type = std.builtin.Type;11const Type = std.builtin.Type;
1212
13test "std.meta.TrailerFlags" {13test {
14 _ = TrailerFlags;14 _ = TrailerFlags;
15}15}
1616