Skip to content

Commit 50d4688

Browse files
committed
tests: add missing asserts
CID 1398597, 1398598
1 parent d9eae98 commit 50d4688

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/index/crlf.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ void test_index_crlf__safecrlf_true_autocrlf_input_text_auto_attr(void)
353353

354354
cl_git_pass(git_index_add_bypath(g_index, "newfile.txt"));
355355
entry = git_index_get_bypath(g_index, "newfile.txt", 0);
356+
cl_assert(entry);
356357

357358
cl_git_pass(git_oid_fromstr(&oid, FILE_OID_LF));
358359
cl_assert_equal_oid(&oid, &entry->id);
@@ -373,6 +374,7 @@ void test_index_crlf__safecrlf_true_autocrlf_input_text__no_attr(void)
373374

374375
cl_git_pass(git_index_add_bypath(g_index, "newfile.txt"));
375376
entry = git_index_get_bypath(g_index, "newfile.txt", 0);
377+
cl_assert(entry);
376378

377379
cl_git_pass(git_oid_fromstr(&oid, FILE_OID_LF));
378380
cl_assert_equal_oid(&oid, &entry->id);

0 commit comments

Comments
 (0)