{"id":13726567,"url":"https://github.com/bloodyowl/rescript-spy","last_synced_at":"2026-01-04T10:31:06.536Z","repository":{"id":149408898,"uuid":"315068381","full_name":"bloodyowl/rescript-spy","owner":"bloodyowl","description":"Test utility to check function calls","archived":false,"fork":false,"pushed_at":"2021-06-19T11:28:03.000Z","size":32,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-25T12:27:39.202Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"ReScript","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/bloodyowl.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":".github/FUNDING.yml","license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null},"funding":{"github":["bloodyowl"]}},"created_at":"2020-11-22T15:25:09.000Z","updated_at":"2024-11-05T00:16:14.000Z","dependencies_parsed_at":"2023-09-03T22:47:36.063Z","dependency_job_id":null,"html_url":"https://github.com/bloodyowl/rescript-spy","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/bloodyowl%2Frescript-spy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bloodyowl%2Frescript-spy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bloodyowl%2Frescript-spy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bloodyowl%2Frescript-spy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bloodyowl","download_url":"https://codeload.github.com/bloodyowl/rescript-spy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244609880,"owners_count":20480867,"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-08-03T01:03:13.158Z","updated_at":"2026-01-04T10:31:06.531Z","avatar_url":"https://github.com/bloodyowl.png","language":"ReScript","funding_links":["https://github.com/sponsors/bloodyowl"],"categories":["ReScript"],"sub_categories":[],"readme":"# ReScript Spy\n\n\u003e Test utility to check function calls\n\n## Install\n\n```console\n$ yarn add rescript-spy\n```\n\nThen, add it to you're `rescript.json`'s dev dependencies:\n\n```diff\n \"bs-dev-dependencies\": [\n+   \"rescript-spy\"\n ]\n```\n\n## Usage\n\n```rescript\nlet (spy, calls) = Spy.make2((a, b) =\u003e a + b)\n\nlet _ = spy(1, 2)\nlet _ = spy(2, 3)\n\ncalls // [(1, 2), (2, 3)]\nSpy.clear(calls)\n\nlet _ = spy(3, 4)\ncalls // [(3, 4)]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbloodyowl%2Frescript-spy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbloodyowl%2Frescript-spy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbloodyowl%2Frescript-spy/lists"}