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

2 tests DataSourcePatterns class #237

Merged
merged 7 commits into from
Mar 4, 2024
Merged

2 tests DataSourcePatterns class #237

merged 7 commits into from
Mar 4, 2024

Conversation

youphendriks
Copy link
Contributor

Valid input working, invalid input Disabled cause I have to figure out how to throws.
getDataSourceMatches class does not throw an exception on following inputs; "", " "
Is there a different method to make my test throw an exception or is the problem the lack of exception handling in the codebase?

Copy link

codecov bot commented Feb 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 19.95%. Comparing base (3c039ec) to head (5038cd5).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #237      +/-   ##
==========================================
+ Coverage   19.93%   19.95%   +0.01%     
==========================================
  Files         164      164              
  Lines       10542    10542              
  Branches     1403     1403              
==========================================
+ Hits         2102     2104       +2     
+ Misses       8245     8242       -3     
- Partials      195      196       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines 4 to 5
*Copyright (c) 2012 Egon Willighagen <egonw@users.sf.net>
*Copyright (c) 2012 OpenPhacts
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think there is any code left from the previous session. Please update this line to just list your name. If you do prefer not to give your email address, you can use <youphendriks@github.com>, but likely your email address is in the git commit message anyway.

import org.junit.jupiter.api.Assertions;

/**
* Tests the {@link org.bridgedb.DataSourcePatterns} class
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The first sentence of JavaDoc should always end with a period. Please add these.

Copy link
Member

@egonw egonw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See my comments.

@egonw
Copy link
Member

egonw commented Feb 29, 2024

Is there a different method to make my test throw an exception or is the problem the lack of exception handling in the codebase?

I need a bit more explanation here, because I am not sure what you mean.

@youphendriks
Copy link
Contributor Author

Implemented changes: added "." to JavaDoc and changed name and email to mine. I believe this commit has been added to the PR, could you check?

@egonw egonw merged commit 1f87f54 into bridgedb:main Mar 4, 2024
3 checks passed
@egonw
Copy link
Member

egonw commented Mar 4, 2024

Thanks, merged! I updated the copyright year (since you write it this year) and some formatting. We should have a template for the copyright/license header and then apply it to all files. Right now, many still are a mix of copyright/license and documentation (the last should be in the JavaDoc instead, in my opinion).

@youphendriks
Copy link
Contributor Author

youphendriks commented Mar 4, 2024 via email

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

Successfully merging this pull request may close these issues.

2 participants