mockito
mockito copied to clipboard
Import uri of revived constants is derived in a brittle way
Mockito assumes that the import uri is where an constant's type is defined, which isn't always true. This may not cause problems today, but it breaks when trying to revive variables directly in source_gen. See https://github.com/dart-lang/source_gen/pull/713#issuecomment-2345167676 for details