{"id":24290241,"url":"https://github.com/atomicptr/buster","last_synced_at":"2025-07-30T19:34:19.137Z","repository":{"id":272337374,"uuid":"916255509","full_name":"atomicptr/buster","owner":"atomicptr","description":"A tiny, single file, header only assertion library for C++23","archived":false,"fork":false,"pushed_at":"2025-01-26T18:16:08.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-22T02:00:35.983Z","etag":null,"topics":["assertions","cpp","cpp-library","cpp23","unit-testing"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"0bsd","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/atomicptr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"atomicptr","buy_me_a_coffee":"atomicptr"}},"created_at":"2025-01-13T18:42:07.000Z","updated_at":"2025-01-26T18:16:12.000Z","dependencies_parsed_at":"2025-01-13T19:40:12.261Z","dependency_job_id":"65daa552-6389-442c-9492-6d78f1e3939a","html_url":"https://github.com/atomicptr/buster","commit_stats":null,"previous_names":["atomicptr/buster"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/atomicptr/buster","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomicptr%2Fbuster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomicptr%2Fbuster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomicptr%2Fbuster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomicptr%2Fbuster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atomicptr","download_url":"https://codeload.github.com/atomicptr/buster/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomicptr%2Fbuster/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267929063,"owners_count":24167433,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["assertions","cpp","cpp-library","cpp23","unit-testing"],"created_at":"2025-01-16T11:44:29.530Z","updated_at":"2025-07-30T19:34:19.062Z","avatar_url":"https://github.com/atomicptr.png","language":"C++","funding_links":["https://github.com/sponsors/atomicptr","https://buymeacoffee.com/atomicptr"],"categories":[],"sub_categories":[],"readme":"# buster\n\nA tiny, single file, header only assertion library for C++23\n\n## Usage\n\nThe general idea of this library is to give you a way to write tests in any way you see fit, so it's\nnot really doing anything but giving you assertion functions.\n\nOne way to use buster, which is how I like to do tests these days:\n- Make a tests directory, add the [src/buster.hpp](src/buster.hpp) and start adding your tests\n- Create a new .cpp file for every test case\n- Write a script that builds all of them and then executes them\n\nExample for one test case:\n\n```cpp\n#include \"buster.hpp\"\n\n// the function we're going to test\nint adder(int a, int b) {\n    return a + b;\n}\n\nint main() {\n    expect_equals(4, adder(2, 2));\n    expect_true(adder(2, 3) == 5);\n\n    return 0;\n}\n```\n\n## License\n\nBSD 0-Clause\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatomicptr%2Fbuster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatomicptr%2Fbuster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatomicptr%2Fbuster/lists"}