Skip to content
This repository was archived by the owner on Jan 9, 2026. It is now read-only.

Fix coverage, restore defun advice#1151

Merged
emilypi merged 3 commits intomasterfrom
feat/fix-coverage
Feb 27, 2023
Merged

Fix coverage, restore defun advice#1151
emilypi merged 3 commits intomasterfrom
feat/fix-coverage

Conversation

@sirlensalot
Copy link
Copy Markdown
Contributor

@sirlensalot sirlensalot commented Feb 25, 2023

  • Fix inlining in TC for coverage
  • Restore defun coverage
  • Add test coverage

Analyze.TimeGen
Analyze.Translate
ClientSpec
CoverageSpec
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Love that you added a test.

(ref,adv) <- mkCoverageAdvice
s <- set (rEnv . eeAdvice) adv <$> initReplState (Script False fn) Nothing
void $! execScriptState' fn s (set (rEnv . eeAdvice) def)
writeCovReport ref
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Are you testing only that it can be generated, but not the contents emitted?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

See latest update, it's a golden test

Copy link
Copy Markdown
Contributor

@imalsogreg imalsogreg left a comment

Choose a reason for hiding this comment

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

Looks great!

@emilypi emilypi merged commit de9b0c1 into master Feb 27, 2023
@emilypi emilypi deleted the feat/fix-coverage branch February 27, 2023 19:14
@emilypi emilypi mentioned this pull request May 12, 2023
8 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants