Skip to content

Coverage: Destructuring named arguments of a function #2233

Open
@migueloller

Description

@migueloller
// repro.js

/* @flow */

function fn1(arg: number) {};

function fn2({ arg }: { arg: number }) {};

Running flow coverage --color repro.js yields the following output:

/* @flow */

function fn1(arg: number) {};

function fn2({ arg }: { arg: number }) {};

Covered: 75.00% (3 of 4 expressions)

where arg from fn2 is marked as uncovered (red). Is this an issue with coverage or am I missing something?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions