summaryrefslogtreecommitdiff
path: root/unittests.c
AgeCommit message (Expand)AuthorFilesLines
2011-03-05Remove moved files.Lars Wirzenius1-1287/+0
2010-10-26Change Dynstr to not allocate memory for string separately.Lars Wirzenius1-31/+1
2010-10-26Add dynstr_strup function.Lars Wirzenius1-0/+16
2010-10-26Rename dynstr_cat to dynstr_cat_many and introduce 2-argument dynstr_cat.Lars Wirzenius1-4/+4
2010-10-26Clean up temporary files in unit tests when all goes well.Lars Wirzenius1-0/+5
2010-10-26Clean up unittest temporary files in "make clean".Lars Wirzenius1-3/+3
2010-10-26Change calls to dynstr_cat to use (void*)NULL instead of plain NULL.Lars Wirzenius1-4/+4
2010-10-25Reformat files, add comments, add copyright and license info.Lars Wirzenius1-1/+19
2010-10-25Implement dynstr_readline and dynstr_freadline.Lars Wirzenius1-0/+73
2010-10-25Implement dynstr_fread and dynstr_read.Lars Wirzenius1-0/+67
2010-10-25Refactor unittest to combine identical code for write and fwrite tests.Lars Wirzenius1-31/+28
2010-10-25Remove outdated comment.Lars Wirzenius1-2/+0
2010-10-25Implement dynstr_write.Lars Wirzenius1-0/+41
2010-10-25Modify test for dynstr_fwrite to check that it wrote correctly.Lars Wirzenius1-1/+11
2010-10-25Implement dynstr_cmp.Lars Wirzenius1-0/+89
2010-10-25Implement dynstr_fwrite.Lars Wirzenius1-0/+30
2010-10-25Refactor unittest more, to automatically free substrings.Lars Wirzenius1-18/+25
2010-10-25Refactor unit tests to simplify code for each test.Lars Wirzenius1-114/+83
2010-10-25Add tests to get full coverage for dynstr_first_byte and dynstr_last_byte.Lars Wirzenius1-0/+28
2010-10-25Implement dynstr_last_string.Lars Wirzenius1-0/+102
2010-10-25Implement dynstr_first_string.Lars Wirzenius1-0/+102
2010-10-24Implement dynstr_last_byte.Lars Wirzenius1-0/+70
2010-10-24Implement dynstr_first_byte.Lars Wirzenius1-0/+70
2010-10-22Add test for byte_at for 8-bit bytes.Lars Wirzenius1-0/+12
2010-10-22Implement dynstr_byte_at.Lars Wirzenius1-0/+24
2010-10-22Fix accesses of uninitialized memory reported by valgrind.Lars Wirzenius1-3/+3
2010-10-22Fix problem reported by valgrind by initializing sa_mask.Lars Wirzenius1-0/+1
2010-10-22Fix memory leak in test_alloc_does_not_call_error_handler.Lars Wirzenius1-0/+1
2010-10-22Free up some more strings used by unit tests.Lars Wirzenius1-0/+31
2010-10-22Implement dynstr_free, and use it in one location.Lars Wirzenius1-0/+1
2010-10-22Implement dynstr_cat.Lars Wirzenius1-0/+52
2010-10-22Implement dynstr_substr.Lars Wirzenius1-0/+117
2010-10-22Add support creating constant strings.Lars Wirzenius1-0/+46
2010-10-22Add test for second allocation failure for new().Lars Wirzenius1-12/+45
2010-10-22Add test to verify alloc() does not call error handler if allocation succeeds.Lars Wirzenius1-0/+13
2010-10-22Add test to verify that alloc() calls error handler, when appropriate.Lars Wirzenius1-1/+65
2010-10-20Add more tests for dynstr_memcpy.Lars Wirzenius1-0/+60
2010-10-20Implement dynstr_create_from_memory.Lars Wirzenius1-0/+18
2010-10-20Implement dynstr_new_from_cstring and dynstr_memcpy.Lars Wirzenius1-0/+19
2010-10-20Implement dynstr_new_empty, dynstr_len, and dynstr_is_empty.Lars Wirzenius1-0/+12
2010-10-20Add dynstr_init so unit tests can reset library.Lars Wirzenius1-0/+24
2010-10-20Add test to verify dynstr_malloc_error_abort actually calls abort.Lars Wirzenius1-0/+38
2010-10-20Implement dynstr_set_malloc_error_handler.Lars Wirzenius1-0/+10
2010-10-20Initial import.Lars Wirzenius1-0/+49