{"size": 975, "ext": "scrbl", "max_stars_repo_path": "mock/main.scrbl", "max_stars_repo_name": "countvajhula/racket-mock", "max_stars_repo_stars_event_min_datetime": "2015-08-21T21:58:29.000Z", "max_stars_repo_stars_event_max_datetime": "2021-04-28T19:27:13.000Z", "max_issues_repo_path": "mock/main.scrbl", "max_issues_repo_name": "countvajhula/racket-mock", "max_issues_repo_issues_event_min_datetime": "2015-08-21T22:02:33.000Z", "max_issues_repo_issues_event_max_datetime": "2021-12-14T21:18:59.000Z", "max_forks_repo_path": "mock/main.scrbl", "max_forks_repo_name": "countvajhula/racket-mock", "max_forks_repo_forks_event_min_datetime": "2015-08-21T23:18:03.000Z", "max_forks_repo_forks_event_max_datetime": "2021-12-11T01:47:51.000Z"}
{"max_stars_count": 22, "max_issues_count": 131, "max_forks_count": 10, "avg_line_length": 37.5, "max_line_length": 77, "alphanum_fraction": 0.7743589744}
#lang scribble/manual
@(require "private/util-doc.rkt")

@title[#:style '(toc)]{Mocks}
@defmodule[mock #:packages ("mock")]
@author[@author+email["Jack Firth" "jackhfirth@gmail.com"]]

This library includes functions and forms for working with
@define-mock-tech{mocks}. A mock is a "fake" function
used in place of the real thing during testing to simplify
the test and ensure only a single unit and not it's complex
dependencies is being tested. Mocks record all arguments they're
called with and results they return for tests to inspect and verify.
Mocks are most useful for testing code that calls procedures with
side effects like mutation and IO.

source code: @url["https://github.com/jackfirth/racket-mock"]

For integration with @racketmodname[rackunit #:indirect], see the
@racketmodname[mock/rackunit #:indirect] module in the @racket[mock-rackunit]
package.

@table-of-contents[]
@include-section["private/guide.scrbl"]
@include-section["private/reference.scrbl"]
