{"id":15032687,"url":"https://github.com/mif-0/easy-assert","last_synced_at":"2026-01-31T05:01:57.952Z","repository":{"id":57622790,"uuid":"462404177","full_name":"MIF-0/easy-assert","owner":"MIF-0","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-18T18:13:03.000Z","size":63,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-24T23:44:04.673Z","etag":null,"topics":["assertions","rust-crate","rust-lang","rust-library","rustlang","testing"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/MIF-0.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}},"created_at":"2022-02-22T17:29:35.000Z","updated_at":"2023-05-10T18:13:33.000Z","dependencies_parsed_at":"2023-12-24T00:25:43.959Z","dependency_job_id":"1d22cf2a-d045-40a0-8739-caf6be345960","html_url":"https://github.com/MIF-0/easy-assert","commit_stats":{"total_commits":20,"total_committers":2,"mean_commits":10.0,"dds":"0.050000000000000044","last_synced_commit":"7cae0386655e01231a2b79ee6d8650bfa18a4aae"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/MIF-0/easy-assert","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MIF-0%2Feasy-assert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MIF-0%2Feasy-assert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MIF-0%2Feasy-assert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MIF-0%2Feasy-assert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MIF-0","download_url":"https://codeload.github.com/MIF-0/easy-assert/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MIF-0%2Feasy-assert/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28929862,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T04:05:25.756Z","status":"ssl_error","status_checked_at":"2026-01-31T04:02:35.005Z","response_time":128,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","rust-crate","rust-lang","rust-library","rustlang","testing"],"created_at":"2024-09-24T20:19:08.144Z","updated_at":"2026-01-31T05:01:57.931Z","avatar_url":"https://github.com/MIF-0.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"easy-assert crate, which will help you to create better tests\n\nAdd dependency to your `Cargo.toml`\n```\n[dev-dependencies]\nassert-that = \"0.2.1\"\n```\n\n\nExample:\n    `NumericAssert::assert_that(actual(-1)).is_equal().to(expected(-1));`\n\nIf you need custom description, or you can't implement Display trait)\n `StringAssert::assert_that(actual_with(value, description_fucntion))\n .length()\n .is(expected_with(5, description_fucntion));`\n\nIf you need custom match:\n\n`    CustomAssert::assert_that(actual(val1))\n.matches_by(|a, b| a.eq(b))\n.to(expected(val2));`\n\nAvailable assertions:\n`NumericAssert -\u003e is_equal, is_not_equal, is_less, is_less_or_equal, is_greater, is_greater_or_equal`\n\n`StringAssert -\u003e is_equal, is_not_equal, length, contains`\n\n`BooleanAssert -\u003e is_true, is_false`\n\n`OptionAssert -\u003e is_none, is_some, contains` for now only with custom assertion or with list assertion\n\n```\nListAssert -\u003e \n    length;\n    with_element_matcher -\u003e\n        is_equal_to -\u003e\n            in_any_order;\n            in_order;\n        contains -\u003e\n            in_any_order;\n            in_exact_order; - [A,B,C,A,D].contains([B,C]).in_exact_order() = true/[A,B,C,A,D].contains([B,D]).in_exact_order() = false\n            just_in_order; - [A,B,C,A,D].contains([B,C]).in_exact_order() = true/[A,B,C,A,D].contains([B,D]).in_exact_order() = true\n        is_not_equal_to -\u003e\n            in_any_order; - At least one element should be different\n            in_order; - All elements can be same, but order different\n        does_not_contain -\u003e\n            all(); - All elements from expected should be missed in actual\n            at_least_one(); - At least one element from expected should be missed in actual\n        \n```\n`CustomAssert -\u003e matches_by`\n\nIt is open source, feel free to submit merge requests or propose improvements.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmif-0%2Feasy-assert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmif-0%2Feasy-assert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmif-0%2Feasy-assert/lists"}