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

refactor: use types internally for environment and difflevel #1179

Merged
merged 4 commits into from
Oct 15, 2022

Conversation

midgleyc
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Oct 14, 2022

Codecov Report

Merging #1179 (d758db6) into main (e632720) will increase coverage by 0.02%.
The diff coverage is 71.69%.

❗ Current head d758db6 differs from pull request most recent head 81bca3b. Consider uploading reports for the commit 81bca3b to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main    #1179      +/-   ##
============================================
+ Coverage     30.94%   30.96%   +0.02%     
- Complexity    15192    15201       +9     
============================================
  Files          1038     1038              
  Lines        161578   161608      +30     
  Branches      35096    35099       +3     
============================================
+ Hits          49997    50041      +44     
+ Misses       102660   102647      -13     
+ Partials       8921     8920       -1     
Impacted Files Coverage Δ
src/net/sourceforge/kolmafia/AreaCombatData.java 17.35% <0.00%> (ø)
src/net/sourceforge/kolmafia/KoLAdventure.java 59.38% <ø> (ø)
...ge/kolmafia/textui/parsetree/ProxyRecordValue.java 53.02% <0.00%> (ø)
...net/sourceforge/kolmafia/request/FightRequest.java 32.01% <57.14%> (+0.23%) ⬆️
...eforge/kolmafia/persistence/AdventureDatabase.java 59.73% <78.94%> (+1.45%) ⬆️
src/net/sourceforge/kolmafia/KoLCharacter.java 57.91% <100.00%> (ø)
src/net/sourceforge/kolmafia/Modifiers.java 62.99% <100.00%> (ø)
.../net/sourceforge/kolmafia/maximizer/Evaluator.java 60.23% <100.00%> (ø)
...sourceforge/kolmafia/request/AdventureRequest.java 42.99% <100.00%> (ø)
...sourceforge/kolmafia/session/EquipmentManager.java 37.26% <0.00%> (+0.16%) ⬆️
... and 3 more

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 e632720...81bca3b. Read the comment docs.

jaadams5
jaadams5 previously approved these changes Oct 14, 2022
Copy link
Contributor

@jaadams5 jaadams5 left a comment

Choose a reason for hiding this comment

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

No new tests? ;-)

@midgleyc
Copy link
Member Author

It looks like the only uncovered areas are:

  • AreaCombatData.toString(), but I can't see where this is called (outside of RelayRequest's "safety") or what it should do
  • Two error branches that shouldn't be called
  • Gibberer adventure increment, for which I'd want a debug log from somebody with a Gibberer.

@Veracity0
Copy link
Contributor

I have a Gibberererer.

I assume you want the "time slows down message" which supposedly gives an extra rollover adventure. Supposedly "like a wild hare".

Do you want a wild hare message, too?

I'm out of turns today, but tomorrow is another day.

@midgleyc
Copy link
Member Author

Yes please: both would be good for tests.

gausie
gausie previously approved these changes Oct 15, 2022
Copy link
Contributor

@gausie gausie left a comment

Choose a reason for hiding this comment

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

Love it, thank you. I suppose I should have waited for the above comments to be resolved, but still.

@midgleyc
Copy link
Member Author

I'll do the tests once I get the HTML, but I agree this can go in as-is.

@midgleyc
Copy link
Member Author

made it in under the wire, V

I'll get the tests done now

@Veracity0
Copy link
Contributor

I just uploaded .txt files for both the hare and gibberer.
txt, not html, so you can see which requests were submitted.
Obviously, you will extract the html. :)

@midgleyc
Copy link
Member Author

you probably want to relogin, too: you've given enough info for somebody to impersonate you, going by https://kolmafia.us/threads/replace-pwd-hashes-in-debug-log-with-generic-string.28127/ (the session id + cors header + user agent)

@Veracity0
Copy link
Contributor

I logged out and came downstairs to have breakfast.

@Veracity0
Copy link
Contributor

And do feel free to delete the .txt once you have extracted the html and request. :)

@midgleyc midgleyc merged commit 79f8b02 into kolmafia:main Oct 15, 2022
@midgleyc midgleyc deleted the types-for-diff-env branch October 15, 2022 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants