From f78b029e55db9bce054d7b7cb7e290f2a4ade964 Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Tue, 25 May 2021 20:39:45 +0200 Subject: Give all tests names --- src/nkeys.zig | 4 ++-- tool/znk.zig | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nkeys.zig b/src/nkeys.zig index 1d15623..05922bd 100644 --- a/src/nkeys.zig +++ b/src/nkeys.zig @@ -455,7 +455,7 @@ fn wipeBytes(bs: []u8) void { for (bs) |*b| b.* = 0; } -test { +test "reference all delcarations" { testing.refAllDecls(@This()); testing.refAllDecls(Role); testing.refAllDecls(SeedKeyPair); @@ -463,7 +463,7 @@ test { testing.refAllDecls(PrivateKey); } -test { +test "key conversions" { var key_pair = try SeedKeyPair.generate(.server); var decoded_seed = try SeedKeyPair.fromTextSeed(&key_pair.seedText()); try testing.expect(isValidEncoding(&decoded_seed.seedText())); diff --git a/tool/znk.zig b/tool/znk.zig index 6097a09..24a8ca4 100644 --- a/tool/znk.zig +++ b/tool/znk.zig @@ -500,7 +500,7 @@ pub fn readKeyFile(allocator: *Allocator, file: fs.File) ?Nkey { return null; } -test { +test "reference all declarations" { testing.refAllDecls(@This()); testing.refAllDecls(Nkey); testing.refAllDecls(PrefixKeyGenerator); -- cgit v1.2.3