Skip to content

Conversation

DifferentialOrange
Copy link
Member

@DifferentialOrange DifferentialOrange commented Mar 24, 2023

Now we load flatten functions for spaces with @flatten source. Source starting with @ assumes that it describes the file name, yet here it isn't. Then luacov fails to find "flatten" file on coverage info build.

When we do not specify source explicitly, the whole string became the source. It will not confuse luacov anymore (it just ignores them), and it's more helpful for debug.

  1. https://www.lua.org/manual/5.2/manual.html#pdf-load

Closes #249

I didn't forget about

  • Tests (still green)
  • Changelog
  • Documentation

Now we load flatten functions for spaces with `@flatten` source. Source
starting with @ assumes that it describes the file name, yet here it
isn't. Then luacov fails to find "flatten" file on coverage info build.

When we do not specify source explicitly, the whole string became the
source. It will not confuse luacov anymore (it just ignores them), and
it's more helpful for debug.

1. https://www.lua.org/manual/5.2/manual.html#pdf-load

Closes #249
@DifferentialOrange DifferentialOrange force-pushed the DifferentialOrange/gh-249-fix-luacov branch from c0ef1f6 to 8b19c30 Compare March 24, 2023 13:46
@DifferentialOrange DifferentialOrange merged commit 9253f70 into master Mar 24, 2023
@DifferentialOrange DifferentialOrange deleted the DifferentialOrange/gh-249-fix-luacov branch March 24, 2023 14:19
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.

luacov problem with load()
2 participants