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

Review possibility to add test_case attribute to items within impl blocks #91

Open
luke-biel opened this issue Mar 21, 2022 · 2 comments

Comments

@luke-biel
Copy link
Collaborator

As in title. Since we support using test case on free floating fn items, it would be useful to review if we can enable this functionality on impl blocks, eg.:

impl StructName {
	#[test_case("abcd" => Ok(("ab", "cd")))]
	fn parse(input: &[u8]) -> IResult<&[u8], &[u8])> {
		todo!()
	}
}

this may require extra attribute though.

@AugustoFKL
Copy link
Contributor

@luke-biel, is anyone working on this?

Seems an interesting issue, I'd like to take it over if possible.

@frondeus
Copy link
Owner

frondeus commented Jan 24, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants