From f3857e408478c621dfda2078dbbd3f20507b68d8 Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Thu, 30 Aug 2018 13:46:26 -0400 Subject: [PATCH] Import directives and struct definitions don't really count as executed code --- lib/modules/coverage/contract_source.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/modules/coverage/contract_source.js b/lib/modules/coverage/contract_source.js index 7bca32a0d..3ca944787 100644 --- a/lib/modules/coverage/contract_source.js +++ b/lib/modules/coverage/contract_source.js @@ -127,9 +127,11 @@ class ContractSource { switch(node.nodeType) { case 'Assignment': case 'EventDefinition': + case 'ImportDirective': case 'Literal': case 'PlaceholderStatement': case 'PragmaDirective': + case 'StructDefinition': case 'VariableDeclaration': // We don't need to do anything with these. Just carry on. break;