Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Conversation

@uhafner
Copy link
Member

@uhafner uhafner commented Dec 5, 2021

Add unit tests that show the navigation to the source code view.

Starting with a CoverageBuildAction instance, one can navigate to the model of the source code view using the following code snippet:

SourceViewModel model = action.getTarget().getDynamic(link, null, null);

@uhafner uhafner added the tests Enhancement of tests label Dec 5, 2021
@codecov
Copy link

codecov bot commented Dec 5, 2021

Codecov Report

Merging #269 (6b0e0eb) into master (8e8c40b) will increase coverage by 0.60%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #269      +/-   ##
============================================
+ Coverage     58.00%   58.61%   +0.60%     
- Complexity      483      490       +7     
============================================
  Files            56       56              
  Lines          2298     2298              
  Branches        289      289              
============================================
+ Hits           1333     1347      +14     
+ Misses          859      841      -18     
- Partials        106      110       +4     
Impacted Files Coverage Δ
...ns/plugins/coverage/model/CoverageBuildAction.java 51.06% <ø> (+2.12%) ⬆️
...kins/plugins/coverage/model/CoverageViewModel.java 37.77% <ø> (+10.00%) ⬆️
...enkins/plugins/coverage/model/SourceViewModel.java 50.00% <0.00%> (+50.00%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8e8c40b...6b0e0eb. Read the comment docs.

@uhafner uhafner merged commit adadd20 into master Dec 5, 2021
@uhafner uhafner deleted the view-model-types branch December 5, 2021 22:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

tests Enhancement of tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants