{"id":16603730,"url":"https://github.com/cloose/hamcrest-qt","last_synced_at":"2025-10-29T15:30:51.818Z","repository":{"id":12008432,"uuid":"14589009","full_name":"cloose/Hamcrest-Qt","owner":"cloose","description":"Hamcrest matchers for C++/Qt","archived":false,"fork":false,"pushed_at":"2013-12-20T21:06:00.000Z","size":660,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-02T02:21:30.104Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":" http://cloose.github.io/Hamcrest-Qt","language":"C++","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cloose.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}},"created_at":"2013-11-21T14:00:29.000Z","updated_at":"2019-08-28T07:43:27.000Z","dependencies_parsed_at":"2022-08-30T14:10:33.573Z","dependency_job_id":null,"html_url":"https://github.com/cloose/Hamcrest-Qt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloose%2FHamcrest-Qt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloose%2FHamcrest-Qt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloose%2FHamcrest-Qt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cloose%2FHamcrest-Qt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cloose","download_url":"https://codeload.github.com/cloose/Hamcrest-Qt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238840773,"owners_count":19539613,"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","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":[],"created_at":"2024-10-12T00:52:34.186Z","updated_at":"2025-10-29T15:30:51.415Z","avatar_url":"https://github.com/cloose.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"Hamcrest-Qt\n===========\n\n[Hamcrest](http://hamcrest.org/) matchers for C++/Qt\n\nThis is an attempt to port the [Java Hamcrest](https://github.com/hamcrest/JavaHamcrest) library to C++/Qt and make it usable with [Qt Test](http://qt-project.org/doc/qt-5.1/qttestlib/qttest-index.html).\n\nLike the original library, this code is licensed under [BSD 3-Clause License](http://opensource.org/licenses/BSD-3-Clause).\n\n# EXPERIMENTAL\nThis code is pre-alpha quality. DO NOT USE IN PRODUCTION CODE.\n\n## Links\n\n[Homepage](http://cloose.github.io/Hamcrest-Qt)  \n[API Documentation](http://cloose.github.io/Hamcrest-Qt/docs/html/index.html)\n\n## Supported Matchers\n\n#### allOf\n\nCreates a matcher that matches if the examined object matches **ALL** of the specified matchers.\n\n    ASSERT_THAT(QStringLiteral(\"myValue\"), allOf(startsWith(\"my\"), containsString(\"Val\")));\n\n#### anyOf\n\nCreates a matcher that matches if the examined object matches **ANY** of the specified matchers.\n\n    ASSERT_THAT(QStringLiteral(\"myValue\"), anyOf(startsWith(\"foo\"), containsString(\"Val\")));\n\n#### containsString\n\nCreates a matcher that matches if the examined QString contains the specified\nQString anywhere.\n\n    ASSERT_THAT(QStringLiteral(\"myStringOfNote\"), containsString(\"ring\"));\n\n#### endsWith\n\nCreates a matcher that matches if the examined QString ends with the specified\nQString.\n\n    ASSERT_THAT(QStringLiteral(\"myStringOfNote\"), endsWith(\"Note\"));\n\n#### equalTo\n\nCreates a matcher that matches when the examined object is logically equal to the specified `operand`, as determined by calling the operator==() method on the **examined** object.\n\n    ASSERT_THAT(QStringLiteral(\"foo\"), equalTo(\"foo\"));\n\n#### is\n\nDecorates another Matcher, retaining its behaviour, but allowing tests to be slightly more expressive.\n\n    ASSERT_THAT(cheese, is(equalTo(smelly)));\n\n#### _not\n\nCreates a matcher that wraps an existing matcher, but inverts the logic by which it will match.\n\n    ASSERT_THAT(cheese, is(_not(equalTo(smelly))));\n\n#### startsWith\n\n\nCreates a matcher that matches if the examined QString starts with the specified\nQString.\n\n    ASSERT_THAT(QStringLiteral(\"myStringOfNote\"), startsWith(\"my\"));\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloose%2Fhamcrest-qt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcloose%2Fhamcrest-qt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcloose%2Fhamcrest-qt/lists"}