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

Tag with caller info #24887

Merged
merged 8 commits into from
May 17, 2021
Merged

Conversation

michalczerwinski
Copy link
Contributor

@michalczerwinski michalczerwinski commented May 12, 2021

Fixes #14176
Introducing overload for TagWith to pass caller info (file name and line number).
Adding test to cover the new functionality.

@AndriySvyryd AndriySvyryd merged commit 2b86d9f into dotnet:main May 17, 2021
@smitpatel
Copy link
Contributor

I fail to see a test which populate the info automatically. The test added is just calling the overload with parameter values. Is this what we want?

@AndriySvyryd
Copy link
Member

@smitpatel The test you are proposing would be very fragile and break on reformatting, I think manual verification is enough.

@smitpatel
Copy link
Contributor

I am not sure this works. Manual verification is also fine.

@AndriySvyryd
Copy link
Member

It does

-- file: D:\repos\EFCore\test\EFCore.Relational.Specification.Tests\Query\FromSqlSprocQueryTestBase.cs:78

[dbo].[Ten Most Expensive Products]

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

Successfully merging this pull request may close these issues.

Add TagWith overload that gets the filename and line number automatically
4 participants