{"id":25085905,"url":"https://github.com/lomin/sinho","last_synced_at":"2025-04-15T14:44:40.221Z","repository":{"id":62433601,"uuid":"323906990","full_name":"lomin/sinho","owner":"lomin","description":"sinho provides a matcher called =* for writing tests with a high signal-to-noise ratio.","archived":false,"fork":false,"pushed_at":"2022-03-15T07:36:34.000Z","size":20,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-28T21:21:51.120Z","etag":null,"topics":["clojure","diff","matcher"],"latest_commit_sha":null,"homepage":"https://nextjournal.com/lomin/signal-to-noise-ratio-of-software-tests","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lomin.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":"2020-12-23T13:17:29.000Z","updated_at":"2024-02-29T23:17:47.000Z","dependencies_parsed_at":"2022-11-01T21:01:50.826Z","dependency_job_id":null,"html_url":"https://github.com/lomin/sinho","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lomin%2Fsinho","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lomin%2Fsinho/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lomin%2Fsinho/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lomin%2Fsinho/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lomin","download_url":"https://codeload.github.com/lomin/sinho/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248606716,"owners_count":21132400,"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":["clojure","diff","matcher"],"created_at":"2025-02-07T08:30:35.389Z","updated_at":"2025-04-15T14:44:40.199Z","avatar_url":"https://github.com/lomin.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sinho\n\n*sinho* provides a matcher called ```=*``` for writing tests with a high signal-to-noise ratio.\n\n## Rationale\n\nSee this notebook about [Signal-To-Noise Ratio of Software Tests](https://nextjournal.com/lomin/signal-to-noise-ratio-of-software-tests).\n\n### Alternatives\n\n* [nubank/matcher-combinators](https://github.com/nubank/matcher-combinators)\n\n## Getting Started\n\n*sinho* is available from Clojars. Add the following dependency to your *deps.edn* or *project.clj*:\n\n[![Current Version](https://clojars.org/me.lomin/sinho/latest-version.svg)](https://clojars.org/me.lomin/sinho)\n\n### Example\n```clojure\n(ns me.lomin.sinho.example-test\n  (:require [clojure.test :refer :all]\n            [me.lomin.sinho.matcher :refer [=*]]))\n\n(defn query-twitter-for [user] ; fake implementation\n  {:name           \"Steven Collins\"\n   :twitter        \"@lomin\"\n   :following      169\n   :followers      122\n   :person-of-note {{:name     \"Borussia Dortmund\"\n                     :twitter  \"@BlackYellow\"\n                     :folowing 146\n                     :folowers 4579000}   :favorite\n                    {:name      \"FC Bayern English\"\n                     :twitter   \"@FCBayernEN\"\n                     :following 49\n                     :followers 11000000} :blocked}})\n\n(deftest blocks-all-evil-test\n         (is (=* {:twitter        \"@lomin\"\n                  :person-of-note {{:twitter \"@FCBayernEN\"} :blocked}}\n                 (query-twitter-for \"@lomin\"))))\n\n(deftest failing-blocks-all-evil-test\n         (is (=* {:twitter        \"@lomin\"\n                  :person-of-note {{:instagram \"@FCBayernEN\"} :blocked}}\n                 (query-twitter-for \"@lomin\"))))\n```\n\n## About\n\nSinho (신호) means signal in Korean.\n\n## License\n\nCopyright © 2020 Steven Collins\n\nDistributed under the Eclipse Public License either version 1.0 or (at\nyour option) any later version.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flomin%2Fsinho","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flomin%2Fsinho","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flomin%2Fsinho/lists"}