Flow: Coverage: Destructuring named arguments of a function

Created on 12 Aug 2016  路  2Comments  路  Source: facebook/flow

// 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?

bug coverage

Most helpful comment

Any status on this? Just experienced that as well.

All 2 comments

This does seem like an issue with coverage mishandling destructuring

Any status on this? Just experienced that as well.

Was this page helpful?
0 / 5 - 0 ratings