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

False negative for desugared let statement #1675

Open
nigeleke opened this issue Jan 2, 2025 · 0 comments
Open

False negative for desugared let statement #1675

nigeleke opened this issue Jan 2, 2025 · 0 comments
Assignees

Comments

@nigeleke
Copy link

nigeleke commented Jan 2, 2025

Tarpaulin reports the "let" line is not covered in the following code:

        let I18nConfig {
            id,
            fallback,
            locales,
        } = init();

        I18n::new(id, fallback, locales)

If the code is amended to:

   let config = init();
   I18n::new(config.id, config.fallback, config.locales)

the coverage is complete.

Expected behavior

Same code coverage for both scenarios

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

No branches or pull requests

2 participants