Skip to content

About

A set of argumentMatchers for testify's mock package

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

testify-matchers

A set of argumentMatchers for testify's mock package

To be used in conjunction with testify: http://github.com/stretchr/testify

Usage

package main

import (
    matcher "github.com/henryleduc/testify-matchers"
    "github.com/stretchr/testify/mock"
    "time"
)

func main() {
    // TimeWithGracePeriod matcher
    mock.MatchedBy(matcher.TimeWithGracePeriod(10 * time.Second))
    
    // ContextWithValue matcher
    mock.MatchedBy(matcher.ContextWithValue("myBool", true))
}

About

A set of argumentMatchers for testify's mock package

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages