{"id":13792281,"url":"https://github.com/jackfirth/racket-mock","last_synced_at":"2026-01-05T19:09:09.107Z","repository":{"id":36758539,"uuid":"41065203","full_name":"jackfirth/racket-mock","owner":"jackfirth","description":"Mocking library for Racket","archived":false,"fork":false,"pushed_at":"2020-10-23T07:08:22.000Z","size":176,"stargazers_count":22,"open_issues_count":15,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-24T05:17:15.216Z","etag":null,"topics":["mock","racket","testing"],"latest_commit_sha":null,"homepage":null,"language":"Racket","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jackfirth.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":"2015-08-19T23:44:44.000Z","updated_at":"2021-04-28T19:27:13.000Z","dependencies_parsed_at":"2022-09-10T02:40:57.119Z","dependency_job_id":null,"html_url":"https://github.com/jackfirth/racket-mock","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackfirth%2Fracket-mock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackfirth%2Fracket-mock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackfirth%2Fracket-mock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackfirth%2Fracket-mock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jackfirth","download_url":"https://codeload.github.com/jackfirth/racket-mock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245466931,"owners_count":20620208,"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":["mock","racket","testing"],"created_at":"2024-08-03T22:01:10.566Z","updated_at":"2026-01-05T19:09:09.018Z","avatar_url":"https://github.com/jackfirth.png","language":"Racket","funding_links":[],"categories":["Racket"],"sub_categories":["game"],"readme":"# racket-mock [![Build Status](https://travis-ci.org/jackfirth/racket-mock.svg?branch=master)](https://travis-ci.org/jackfirth/racket-mock) [![codecov](https://codecov.io/gh/jackfirth/racket-mock/branch/master/graph/badge.svg)](https://codecov.io/gh/jackfirth/racket-mock) [![Stories in Ready](https://badge.waffle.io/jackfirth/racket-mock.png?label=ready\u0026title=Ready)](https://waffle.io/jackfirth/racket-mock)\nMocks for Racket testing.\n\n```bash\nraco pkg install mock\nraco pkg install mock-rackunit # RackUnit integration\n```\n\nDocumentation: [`mock`](http://docs.racket-lang.org/mock@mock/index.html), [`mock-rackunit`](http://docs.racket-lang.org/mock-rackunit@mock-rackunit/index.html)\n\nThis library defines *mocks*, which are \"fake\" implementations of functions that record calls made to them.\nTwo separate packages are provided, the main package `mock` and the RackUnit checks package `mock-rackunit`.\nIn standard uses, the `mock-rackunit` dependency is needed only for test code. For a thorough introduction, see [The Mock Guide](http://docs.racket-lang.org/mock@mock/mock-guide.html). For a full API reference, see [The Mock Reference](http://docs.racket-lang.org/mock@mock/mock-reference.html).\n\nExample:\n\n```racket\n(require mock mock/rackunit)\n\n(define/mock (foo)\n  ; in test, don't call the real bar\n  #:mock bar #:as bar-mock #:with-behavior (const \"wow!\")\n  (bar))\n\n(define (bar) \"bam!\")\n\n(foo) ; \"bam!\"\n\n(with-mocks foo\n  (foo) ; \"wow!\"\n  (check-mock-num-calls 1 bar-mock))\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackfirth%2Fracket-mock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjackfirth%2Fracket-mock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackfirth%2Fracket-mock/lists"}