Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Look at emitted IL in tests #43

Open
edespong opened this issue Dec 23, 2017 · 0 comments
Open

Look at emitted IL in tests #43

edespong opened this issue Dec 23, 2017 · 0 comments

Comments

@edespong
Copy link
Contributor

Issue #8 discusses whether we can look at the actual IL or not to determine heap allocations. The conclusion is that it would be too expensive.

I think, however, that it would be of value to add tests where we examine the emitted IL in order to ensure that what is reported is still relevant.

For example, testing the emitted code for string.Format("{0}", 1) and expecting a boxing operation will catch when it is no longer necessary if dotnet/corefx#1514 is fixed (and unit test project running that version).

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

No branches or pull requests

1 participant