Add endColumn/endLine to SARIF region#5011
Conversation
|
This is great. @chao2zhang do you want to pick this up? |
|
|
||
| every { psiFileMock.text } returns code | ||
| every { ktElementMock.containingFile } returns psiFileMock | ||
| return ktElementMock |
There was a problem hiding this comment.
I would prefer to avoid the usage of mockk here if possible. Could this ktelement created/faked instead?
There was a problem hiding this comment.
Fixed.
But why is it a bad idea to use mockk here?
Sorry, could you be more specific? |
picklebento
left a comment
There was a problem hiding this comment.
Thank you for adding tests!
Chao answer this already. We need to refactor core to make this more precise. But that's out of scope of this PR. |
|
@VitalyVPinchuk first of all thank you so much for all the contributions they are really good <3 I want to ask you a favor. In next PRs, if you feel that you are fixing an issue use the ver 'close' or 'fix' before the number or the issue. This way gothub will be automatically close the issue once we merge the PR. This is not a big deal at all but if you can do that it will help a lot so we don't keep already solved issues open :) |
Yes, sure! Thanks for letting me know. |
For #4919
Looks like the following:
But I wasn't able to come up with good tests so I just compare result against predefined text.