{"id":24503962,"url":"https://github.com/fcf-framework/fcftest","last_synced_at":"2025-08-16T11:09:07.247Z","repository":{"id":273465296,"uuid":"919802462","full_name":"fcf-framework/fcfTest","owner":"fcf-framework","description":"Provides the FCF_TEST macro to perform the check in unit tests","archived":false,"fork":false,"pushed_at":"2025-01-21T03:56:16.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T08:25:39.471Z","etag":null,"topics":["cpp","unittest"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fcf-framework.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}},"created_at":"2025-01-21T03:28:01.000Z","updated_at":"2025-01-21T04:13:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"a471d912-fbca-46c1-aebf-3f243467dc5c","html_url":"https://github.com/fcf-framework/fcfTest","commit_stats":null,"previous_names":["fcf-framework/fcftest"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fcf-framework/fcfTest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcf-framework%2FfcfTest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcf-framework%2FfcfTest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcf-framework%2FfcfTest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcf-framework%2FfcfTest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fcf-framework","download_url":"https://codeload.github.com/fcf-framework/fcfTest/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcf-framework%2FfcfTest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270702562,"owners_count":24630877,"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-08-16T02:00:11.002Z","response_time":91,"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":["cpp","unittest"],"created_at":"2025-01-21T23:19:16.109Z","updated_at":"2025-08-16T11:09:07.233Z","avatar_url":"https://github.com/fcf-framework.png","language":"C++","readme":"# fcfTest\n\nProvides the FCF_TEST macro to perform the check in unit tests\n\nThe library is distributed as a header file `fcfTest/test.hpp`\n\n## Description of macros\n\n### FCF_TEST(a_expression [, a_observedVariables ...])\n\nThe macro performs the \"`(a_expression) ==true`\" test, and if the result of the calculation does not satisfy the equality, the exception is called std:::runtime_error.\n\nThe text of the message contains the file name and the line number where the macro FCF_TEST was called, as well as the values of the additional variables `a_observedVariables`.\n\n### Example\n\n```c++\n#include \u003cfcfTest/test.hpp\u003e\n#include \u003cvector\u003e\n\nint main(int a_argc, char* a_argv[]){\n  std::vector\u003cstd::string\u003e vec;\n  vec.push_back(\"test\");\n  FCF_TEST(vec.size() == 2, vec.size());\n  return 0;\n}\n```\n\n__Output:__\n\n```stdout\nterminate called after throwing an instance of 'std::runtime_error'\n  what():  Test error: vec.size() == 2  [FILE: /home/phoenix/Development/projects/fcfcpp/fcfMath/libraries/fcfBasis/test/tests/main.cpp:7]\n  Values:\n    vec.size(): 1\n\n```","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffcf-framework%2Ffcftest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffcf-framework%2Ffcftest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffcf-framework%2Ffcftest/lists"}