Skip to content

Commit 0945a39

Browse files
committed
fix: adding valid pem test
1 parent e94bc05 commit 0945a39

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkg/postprocess/pem_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ func TestIsPem(t *testing.T) {
2626
[]byte("Non-pem File"),
2727
false,
2828
},
29+
{
30+
"Valid private pem file",
31+
[]byte{45, 45, 45, 45, 45, 66, 69, 71, 73, 78, 32, 69, 78, 67, 82, 89, 80, 84, 69, 68, 32, 80, 82, 73, 86, 65, 84,
32+
69, 32, 75, 69, 89, 45, 45, 45, 45, 45, 10, 116, 101, 115, 116, 32,
33+
112, 97, 115, 115, 119, 111, 114, 100, 10, 45, 45, 45, 45, 45, 69, 78, 68, 32, 69, 78, 67,
34+
82, 89, 80, 84, 69, 68, 32, 80, 82, 73, 86, 65, 84, 69, 32, 75, 69, 89, 45, 45, 45, 45, 45},
35+
true,
36+
},
2937
}
3038
for _, tt := range tests {
3139
t.Run(tt.name, func(t *testing.T) {

0 commit comments

Comments
 (0)