diff options
| author | Rutger Broekhoff | 2021-05-21 19:32:21 +0200 |
|---|---|---|
| committer | Rutger Broekhoff | 2021-05-21 19:32:27 +0200 |
| commit | ca8dd03efcae58d8bda9c31519fdc241bfd87efc (patch) | |
| tree | 62d51d39fb018d22b51c14e14f3bad37217a53ca /src | |
| parent | 7d6c1d94ad6d2afaf1384e3220a963ebeb3086c6 (diff) | |
| download | zig-nkeys-ca8dd03efcae58d8bda9c31519fdc241bfd87efc.tar.gz zig-nkeys-ca8dd03efcae58d8bda9c31519fdc241bfd87efc.zip | |
Partially test parseDecoratedJwt
Diffstat (limited to 'src')
| -rw-r--r-- | src/nkeys.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nkeys.zig b/src/nkeys.zig index 23594a0..e8df83d 100644 --- a/src/nkeys.zig +++ b/src/nkeys.zig | |||
| @@ -522,5 +522,9 @@ test { | |||
| 522 | test { | 522 | test { |
| 523 | var creds_bytes = try std.fs.cwd().readFileAlloc(testing.allocator, "fixtures/test.creds", std.math.maxInt(usize)); | 523 | var creds_bytes = try std.fs.cwd().readFileAlloc(testing.allocator, "fixtures/test.creds", std.math.maxInt(usize)); |
| 524 | defer testing.allocator.free(creds_bytes); | 524 | defer testing.allocator.free(creds_bytes); |
| 525 | |||
| 526 | // TODO(rutgerbrf): validate the contents of the results of these functions | ||
| 525 | _ = try parseDecoratedUserNKey(creds_bytes); | 527 | _ = try parseDecoratedUserNKey(creds_bytes); |
| 528 | _ = try parseDecoratedJwt(creds_bytes); | ||
| 526 | } | 529 | } |
| 530 | |||