This repository has been archived by the owner on Feb 25, 2023. It is now read-only.
forked from twitter/pelikan
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add unit tests for buffer, fix buf/dbuf bugs and refactor (twitter#174)
* Add unit tests for buffer, fix buf/dbuf bugs and refactor - unit tests for buf/dbuf - update api to take const for non mutating function - improve option/metric descriptions - fix buf_new_cap miscalculation - fix memory usage metric on destroy - refactor size check for dbuf
- Loading branch information
Showing
8 changed files
with
488 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
set(suite buf) | ||
set(test_name check_${suite}) | ||
|
||
set(source check_${suite}.c) | ||
|
||
add_executable(${test_name} ${source}) | ||
target_link_libraries(${test_name} ccommon-static ${CHECK_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} m) | ||
|
||
add_dependencies(check ${test_name}) | ||
add_test(${test_name} ${test_name}) |
Oops, something went wrong.