Skip to content

Commit 3f1c51c

Browse files
committed
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.
1 parent 08a8aa1 commit 3f1c51c

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

lib/std/Thread.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1141,7 +1141,7 @@ test "setName, getName" {
11411141
thread.join();
11421142
}
11431143

1144-
test "std.Thread" {
1144+
test {
11451145
// Doesn't use testing.refAllDecls() since that would pull in the compileError spinLoopHint.
11461146
_ = Futex;
11471147
_ = ResetEvent;

lib/std/atomic.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pub const Stack = @import("atomic/stack.zig").Stack;
77
pub const Queue = @import("atomic/queue.zig").Queue;
88
pub const Atomic = @import("atomic/Atomic.zig").Atomic;
99

10-
test "std.atomic" {
10+
test {
1111
_ = @import("atomic/stack.zig");
1212
_ = @import("atomic/queue.zig");
1313
_ = @import("atomic/Atomic.zig");

lib/std/crypto/pcurves/p256.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,6 @@ pub const AffineCoordinates = struct {
473473
}
474474
};
475475

476-
test "p256" {
476+
test {
477477
_ = @import("tests/p256.zig");
478478
}

lib/std/crypto/pcurves/p384.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ pub const AffineCoordinates = struct {
473473
}
474474
};
475475

476-
test "p384" {
476+
test {
477477
if (@import("builtin").zig_backend == .stage2_c) return error.SkipZigTest;
478478

479479
_ = @import("tests/p384.zig");

lib/std/crypto/pcurves/secp256k1.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ pub const AffineCoordinates = struct {
551551
}
552552
};
553553

554-
test "secp256k1" {
554+
test {
555555
if (@import("builtin").zig_backend == .stage2_c) return error.SkipZigTest;
556556

557557
_ = @import("tests/secp256k1.zig");

lib/std/hash.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const xxhash = @import("hash/xxhash.zig");
3636
pub const XxHash64 = xxhash.XxHash64;
3737
pub const XxHash32 = xxhash.XxHash32;
3838

39-
test "hash" {
39+
test {
4040
_ = adler;
4141
_ = auto_hash;
4242
_ = crc;

lib/std/math/complex.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ test "complex.magnitude" {
189189
try testing.expect(math.approxEqAbs(f32, c, 5.83095, epsilon));
190190
}
191191

192-
test "complex.cmath" {
192+
test {
193193
_ = @import("complex/abs.zig");
194194
_ = @import("complex/acosh.zig");
195195
_ = @import("complex/acos.zig");

lib/std/meta.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pub const TrailerFlags = @import("meta/trailer_flags.zig").TrailerFlags;
1010

1111
const Type = std.builtin.Type;
1212

13-
test "std.meta.TrailerFlags" {
13+
test {
1414
_ = TrailerFlags;
1515
}
1616

0 commit comments

Comments
 (0)