All Projects → jackfirth → racket-mock

jackfirth / racket-mock

Licence: other
Mocking library for Racket

Programming Languages

racket
414 projects

Projects that are alternatives of or similar to racket-mock

entity-framework-mock
Easy Mock wrapper for mocking EF6 DbContext and DbSet using Moq or NSubstitute
Stars: ✭ 45 (+104.55%)
Mutual labels:  mock
Paw-FakerDynamicValue
A dynamic value extension for Paw using Faker to generate data
Stars: ✭ 16 (-27.27%)
Mutual labels:  mock
mock-json-schema
Simple utility to mock example objects based on JSON schema definitions
Stars: ✭ 23 (+4.55%)
Mutual labels:  mock
axios-mock-server
RESTful mock server using axios.
Stars: ✭ 33 (+50%)
Mutual labels:  mock
Mokku
Mock API calls seamlessly
Stars: ✭ 109 (+395.45%)
Mutual labels:  mock
clock
Lendable Clock Abstraction
Stars: ✭ 15 (-31.82%)
Mutual labels:  mock
electron-admin-antd-vue
Electron Vue3.x Ant Design Admin template
Stars: ✭ 21 (-4.55%)
Mutual labels:  mock
mock-data
Mock data in PostgreSQL/Greenplum databases
Stars: ✭ 115 (+422.73%)
Mutual labels:  mock
shai
数据模拟生成库
Stars: ✭ 55 (+150%)
Mutual labels:  mock
wwvue-cli
vue-cli升级版脚手架,应有尽有的开箱即用方法及配置,没有花里胡哨的晦涩难懂的操作,上手成本极低,现已新增simple(极简模式)、vue3和iview-template,是个很不错的垫脚石,来不及解释了赶紧上车😊😘
Stars: ✭ 15 (-31.82%)
Mutual labels:  mock
rocket-pipes
Powerful pipes for TypeScript, that chain Promise and ADT for you 🚌 -> ⛰️ -> 🚠 -> 🏂 -> 🚀
Stars: ✭ 18 (-18.18%)
Mutual labels:  mock
interface-forge
Graceful mock-data and fixtures generation using TypeScript
Stars: ✭ 58 (+163.64%)
Mutual labels:  mock
kugou
multiple implementations for kugou music
Stars: ✭ 25 (+13.64%)
Mutual labels:  mock
chip
📦 🐳 🚀 - Smart "dummy" mock for cloud native tests
Stars: ✭ 19 (-13.64%)
Mutual labels:  mock
firebase-nightlight
An in-memory, JavaScript mock for the Firebase Web API
Stars: ✭ 37 (+68.18%)
Mutual labels:  mock
admin-base-tmpl
⚡️基于vite2构建的vue2+typescript+elementUI 的后台基础套件,预览地址
Stars: ✭ 52 (+136.36%)
Mutual labels:  mock
joke
Typesafe mock utility with minimal boilerplate for jest
Stars: ✭ 16 (-27.27%)
Mutual labels:  mock
chrome-extension-mocker
The most convenient tool to mock requests for axios, with built-in Chrome extension support.
Stars: ✭ 37 (+68.18%)
Mutual labels:  mock
factory
Generate lots of mock API data with ease.
Stars: ✭ 17 (-22.73%)
Mutual labels:  mock
mockit
A tool that integrates SQL, HTTP,interface,Redis mock
Stars: ✭ 13 (-40.91%)
Mutual labels:  mock

racket-mock Build Status codecov Stories in Ready

Mocks for Racket testing.

raco pkg install mock
raco pkg install mock-rackunit # RackUnit integration

Documentation: mock, mock-rackunit

This library defines mocks, which are "fake" implementations of functions that record calls made to them. Two separate packages are provided, the main package mock and the RackUnit checks package mock-rackunit. In standard uses, the mock-rackunit dependency is needed only for test code. For a thorough introduction, see The Mock Guide. For a full API reference, see The Mock Reference.

Example:

(require mock mock/rackunit)

(define/mock (foo)
  ; in test, don't call the real bar
  #:mock bar #:as bar-mock #:with-behavior (const "wow!")
  (bar))

(define (bar) "bam!")

(foo) ; "bam!"

(with-mocks foo
  (foo) ; "wow!"
  (check-mock-num-calls 1 bar-mock))
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].