Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data exclusion for verify.Values #2

Open
mikelangelon opened this issue Apr 14, 2016 · 1 comment
Open

Data exclusion for verify.Values #2

mikelangelon opened this issue Apr 14, 2016 · 1 comment
Assignees

Comments

@mikelangelon
Copy link

It would be super cool to have an exclude list for the verify function. Sometimes the match is gonna be between complex or deep structs and right now is mandatory to provide an exact struct match. Which is perfect plenty of times, but in some scenarios could be interesting to just care about specific values for the match.

Like, let's suppose that I'm expecting an struct like:

type PeriodCalc struct {
Something string
Blablabla string
Value string
Trace []*Log
}

But maybe I don't care about this Trace array and I want just to ignore it and check the other variables.

@pascaldekloe pascaldekloe changed the title Feature request Data exclusion for verify.Values Apr 14, 2016
@pascaldekloe
Copy link
Owner

Makes sense indeed. Maybe a (GoEL) exclusion list as a vararg would do. I'll give it a shot later this week...

@pascaldekloe pascaldekloe self-assigned this Mar 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants