source_gen_test icon indicating copy to clipboard operation
source_gen_test copied to clipboard

Add `node` field to `@ShouldThrow`

Open CodingSoot opened this issue 1 year ago • 0 comments

The latest source_gen version (1.4.0) added a node argument to InvalidGenerationSourceError to allow finding the source location from an AstNode over an Element.

Currently, the @ShouldThrow annotation doesn't have such field, so we can't test if a node was passed to InvalidGenerationSourceError.

CodingSoot avatar Sep 09 '23 14:09 CodingSoot