{"id":20990569,"url":"https://github.com/offa/matcher","last_synced_at":"2025-10-17T07:41:01.427Z","repository":{"id":85692878,"uuid":"55069438","full_name":"offa/matcher","owner":"offa","description":"C++11 Hamcrest like Matcher implementation.","archived":false,"fork":false,"pushed_at":"2020-11-16T12:15:21.000Z","size":76,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-13T12:17:30.691Z","etag":null,"topics":["cpp","cpp11","cpputest","hamcrest"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/offa.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":"2016-03-30T14:23:15.000Z","updated_at":"2020-11-16T12:15:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"d183ebdf-1493-4fcd-b825-d3dd6f743ae8","html_url":"https://github.com/offa/matcher","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/offa/matcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/offa%2Fmatcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/offa%2Fmatcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/offa%2Fmatcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/offa%2Fmatcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/offa","download_url":"https://codeload.github.com/offa/matcher/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/offa%2Fmatcher/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268215577,"owners_count":24214363,"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-01T02:00:08.611Z","response_time":67,"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","cpp11","cpputest","hamcrest"],"created_at":"2024-11-19T06:34:19.717Z","updated_at":"2025-10-17T07:40:56.405Z","avatar_url":"https://github.com/offa.png","language":"C++","readme":"# [Matcher](https://github.com/offa/matcher)\n\n[![CI](https://github.com/offa/matcher/workflows/ci/badge.svg)](https://github.com/offa/matcher/actions)\n[![GitHub release](https://img.shields.io/github/release/offa/matcher.svg)](https://github.com/offa/matcher/releases)\n[![License](https://img.shields.io/badge/license-GPLv3-yellow.svg)](LICENSE)\n![C++](https://img.shields.io/badge/c++-11-green.svg)\n\nC++11 Hamcrest like Matcher implementation.\n\n\n## Requirements\n\n - [**CMake**](http://www.cmake.org/) - for building tests *(Optional)*\n - [**CppUTest**](https://github.com/cpputest/cpputest) - for testing *(Optional)*\n\n\n## Installtion\n\nHeader only - no compilation / installation is required.\n\n\n## Example\n\n```cpp\n#include \u003cvector\u003e\n#include \u003ccassert\u003e\n#include \"matcher/Matcher.h\"\n\nint main(int argc, char** argv)\n{\n    using namespace matcher;\n\n    std::vector\u003cint\u003e v = { 0, 1, 2, 3  };\n\n    auto res = expect(v).that(sizeIs(4));\n    assert(res.getResult());\n\n    auto res2 = expect(v).that(elementsAre({0, 1, 2, 3}));\n    assert(res2.getResult());\n\n    bool res3 = expect(123.456).match(doubleNear(123.45, 0.001));\n    assert(res3);\n\n    return 0;\n}\n```\n\n\n## Testing\n\n```\nmkdir build \u0026\u0026 cd build\ncmake ..\nmake\nmake unittest\n```\n\nIt's also possible to use `make test` / `ctest` instead. For `unittest` it's possible to switch verbosity by CMake option.\n\n\n## License\n\n**GNU General Public License (GPL)**\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License\n    along with this program.  If not, see \u003chttp://www.gnu.org/licenses/\u003e.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foffa%2Fmatcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foffa%2Fmatcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foffa%2Fmatcher/lists"}