Skip to content
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.
/ mockall-async Public archive

Sample code to demonstrate the use of mockall with async traits

License

Notifications You must be signed in to change notification settings

mibes/mockall-async

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Mocking asynchronous traits is not as straightforward as one might think. Mockall (https://docs.rs/mockall/0.6.0/mockall) provides a great set of examples for various other use cases, but mocking aync traits is not supported out of the box. This small Rust example demonstrates how to use mockall with async traits. It is based on the workaround listed here: asomers/mockall#75

Usage

cargo test

About

Sample code to demonstrate the use of mockall with async traits

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages