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

Increase coverage #21

Merged
merged 44 commits into from
Jun 27, 2023
Merged

Increase coverage #21

merged 44 commits into from
Jun 27, 2023

Conversation

DavidAKopriva
Copy link
Collaborator

Add coverage for valueDictionary methods.

Add coverage for valueDictionary methods.
@codecov
Copy link

codecov bot commented May 26, 2023

Codecov Report

Merging #21 (2373c40) into main (404e991) will increase coverage by 26.28%.
The diff coverage is 97.47%.

@@             Coverage Diff             @@
##             main      #21       +/-   ##
===========================================
+ Coverage   68.26%   94.55%   +26.28%     
===========================================
  Files          28       31        +3     
  Lines        2433     2810      +377     
===========================================
+ Hits         1661     2657      +996     
+ Misses        772      153      -619     
Flag Coverage Δ
unittests 94.55% <97.47%> (+26.28%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
Source/FTObjects/FTLinkedListClass.f90 91.90% <ø> (+25.12%) ⬆️
Source/FTObjects/FTObjectArrayClass.f90 96.70% <ø> (+19.78%) ⬆️
Source/FTObjects/FTSparseMatrixClass.f90 99.04% <ø> (+12.38%) ⬆️
Source/FTTesting/Assert.f90 83.78% <73.07%> (+50.26%) ⬆️
Testing/Tests/MutableArrayTests.f90 95.65% <87.50%> (-2.47%) ⬇️
Testing/Tests/AssertionFailureTests.f90 92.15% <92.15%> (ø)
Source/FTObjects/FTDataClass.f90 100.00% <100.00%> (+100.00%) ⬆️
Source/FTObjects/FTDictionaryClass.f90 98.49% <100.00%> (+39.09%) ⬆️
Source/FTObjects/FTExceptionClass.f90 95.87% <100.00%> (+44.84%) ⬆️
Source/FTObjects/FTValueClass.f90 98.02% <100.00%> (+23.02%) ⬆️
... and 15 more

... and 5 files with indirect coverage changes

Use routine missed in previous commit. fix bug in casting subroutine where the wrong pointer was nullified.
Add coverage for FTValue.
Add integer value coverage.
Add logical conversion tests. Change string return on logical to lower case.
Copy link
Member

@andrewwinters5000 andrewwinters5000 left a comment

Choose a reason for hiding this comment

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

LGTM! Just a small syntax suggestion.

Testing/Tests/ValueClassTests.f90 Outdated Show resolved Hide resolved
@DavidAKopriva DavidAKopriva marked this pull request as draft May 29, 2023 16:10
DavidAKopriva and others added 22 commits May 29, 2023 13:54
Add additional tests for plain dictionaries. Use the NEW_LINE function to add newline character instead of the less portable char(13)
Add key-object pair tests
Add a test using isUnreferenced in the FTObject class for the subclass of FTValue. Add coverage for casting and class name for StringSets.
Add tests for casting and object type. Fix comment in the original class code..
Add more testing of exceptions
Add forgotten test of casting by function call.
Increase stack coverage plus some formatting.
Increase coverage of linked list class. Remove a superseded procedure that isn't used. Add testing for inserting an object.
Add coverage for MatrixData, and fix comments in FTSparseMatrixClass
* Update Comparisons.f90

Replace pure relative error test in the comparisons with an absolute + relative error test. The same tolerance is used for each.

* Bump actions/checkout from 2 to 3

Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v2...v3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andrew Winters <[email protected]>
Add absolute error as an optional argument to allow flexibility in setting both absolute and relative error tests. Reduces to a pure relative error test by default.
Fix capitalization
Add tests for multindexTable.
Add a getter for the output unit, test set and get, and execute finalize.
Add tests for additional procedures in Comparisons.f90
Add a couple of individual negative tests.
Add tests for FTData, including some updates to the class.
Fix compiler name in makefile.
Fix spelling
Adding coverage of assertions.
Copy link
Member

@andrewwinters5000 andrewwinters5000 left a comment

Choose a reason for hiding this comment

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

Nice work @DavidAKopriva adding all the new tests! I know that this process can be very tiresome. Most of my suggestions are formatting related as everything else already looks good.

Source/FTObjects/FTLinkedListClass.f90 Show resolved Hide resolved
Source/FTTesting/Comparisons.f90 Outdated Show resolved Hide resolved
Source/FTTesting/Comparisons.f90 Outdated Show resolved Hide resolved
Source/FTTesting/Comparisons.f90 Outdated Show resolved Hide resolved
Testing/TestMain.f90 Outdated Show resolved Hide resolved
Testing/Tests/StacksTests.f90 Outdated Show resolved Hide resolved
Testing/Tests/ValueClassTests.f90 Outdated Show resolved Hide resolved
Source/FTTesting/Assert.f90 Show resolved Hide resolved
Source/FTTesting/Assert.f90 Outdated Show resolved Hide resolved
Source/FTTesting/Assert.f90 Outdated Show resolved Hide resolved
Copy link
Member

@andrewwinters5000 andrewwinters5000 left a comment

Choose a reason for hiding this comment

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

LGTM!

@andrewwinters5000 andrewwinters5000 marked this pull request as ready for review June 27, 2023 16:36
@andrewwinters5000 andrewwinters5000 merged commit 370c0d0 into main Jun 27, 2023
@andrewwinters5000 andrewwinters5000 deleted the IncreaseCoverage branch June 27, 2023 16:37
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