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

coverage #494

Merged
merged 2 commits into from
Sep 24, 2024
Merged

coverage #494

merged 2 commits into from
Sep 24, 2024

Conversation

SuperFola
Copy link
Member

@SuperFola SuperFola commented Sep 24, 2024

  • feat(cmake): adding more flags for coverage

Copy link

github-actions bot commented Sep 24, 2024

Static analysis report

Lizard report

Listing only functions with cyclomatic complexity >= 15 or NLOC >= 100 or parameters >= 6.

Report about files you didn't modify in this PR
Filename Start line:end line Function name Parameters NLOC CCN
src/arkreactor/VM/VM.cpp 266:1096 Ark::VM::safeRun 3 672 166
src/arkreactor/Compiler/BytecodeReader.cpp 196:513 Ark::BytecodeReader::display 4 284 124
src/arkreactor/Compiler/Macros/Processor.cpp 266:574 Ark::internal::MacroProcessor::evaluate 3 291 118
src/arkreactor/Compiler/Compiler.cpp 558:723 Ark::Compiler::handleCalls 5 133 40
src/arkscript/REPL/Repl.cpp 17:229 Ark::Repl::Repl 1 180 35
include/Ark/Compiler/AST/Parser.hpp 87:176 Ark::internal::ARK_APIParser::string 0 87 32
src/arkscript/main.cpp 17:327 main 2 268 30
src/arkreactor/Compiler/Compiler.cpp 265:356 Ark::Compiler::compileExpression 5 75 25
src/arkreactor/Compiler/AST/Node.cpp 209:279 Ark::internal::Node::debugPrint 1 61 23
src/arkscript/JsonCompiler.cpp 24:189 JsonCompiler::_compile 1 139 23
include/utf8.hpp 138:184 utf8::isValid 1 44 21
src/arkreactor/Compiler/AST/Parser.cpp 270:397 Ark::internal::Parser::import_ 0 103 21
src/arkreactor/Compiler/Macros/Processor.cpp 117:187 Ark::internal::MacroProcessor::processNode 2 54 21
src/arkreactor/Compiler/NameResolutionPass.cpp 133:210 Ark::internal::NameResolutionPass::visitKeyword 2 70 20
src/arkreactor/Compiler/Macros/Executors/Function.cpp 12:86 Ark::internal::FunctionExecutor::applyMacro 2 60 18
src/arkreactor/Compiler/AST/Node.cpp 143:207 Ark::internal::Node::repr 0 56 17
src/arkreactor/VM/Value.cpp 77:135 Ark::Value::toString 1 46 17
include/Ark/Compiler/AST/Predicates.hpp 162:186 Ark::internal::IsSymbol::operator ( ) 1 24 16
src/arkreactor/Compiler/Macros/Processor.cpp 46:91 Ark::internal::MacroProcessor::registerMacro 1 41 16
src/arkreactor/TypeChecker.cpp 28:85 Ark::types::displayContract 2 51 15
src/arkreactor/Exceptions.cpp 86:130 Ark::Diagnostics::makeContext 6 35 15
src/arkscript/Formatter.cpp 161:214 Formatter::format 3 51 15
src/arkreactor/Exceptions.cpp 133:142 Ark::Diagnostics::helper 9 9 3
include/Ark/Exceptions.hpp 92:101 Ark::CodeError::CodeError 6 10 1

CppCheck report

Report files about files you didn't modify in this PR
Filename Line Type Description
src/arkreactor/Builtins/IO.cpp 24 style Parameter 'n' can be declared with const
src/arkreactor/Builtins/IO.cpp 43 style Parameter 'n' can be declared with const
include/Ark/Compiler/AST/Optimizer.hpp 64 style Unused private function: 'Optimizer::throwOptimizerError'
include/Ark/Compiler/AST/Optimizer.hpp 70 style Unused private function: 'Optimizer::removeUnused'
src/arkreactor/Compiler/AST/Parser.cpp 389 error Uninitialized variable: import_data.with_prefix
src/arkreactor/Compiler/BytecodeReader.cpp 331 style struct member 'Arg::arg' is never used.
include/Ark/Compiler/Macros/Processor.hpp 164 performance Function parameter 'origin' should be passed by const reference.
src/arkreactor/Compiler/Macros/Executor.cpp 12 performance Function parameter 'origin' should be passed by const reference.
include/Ark/Compiler/Macros/Executor.hpp 65 performance Function parameter 'origin' should be passed by const reference.
src/arkreactor/Compiler/Macros/Executors/Function.cpp 14 style The scope of the variable 'first' can be reduced.
src/arkreactor/Compiler/Macros/Processor.cpp 245 performance Function parameter 'origin' should be passed by const reference.
src/arkreactor/VM/Scope.cpp 51 style Variable 'id' is not assigned a value.
src/arkreactor/VM/Scope.cpp 61 style Variable 'id' is not assigned a value.
src/arkreactor/VM/Scope.cpp 71 style Variable 'id' is not assigned a value.
src/arkscript/REPL/Repl.cpp 24 style Consider using std::copy algorithm instead of a raw loop.
src/arkscript/REPL/Repl.cpp 26 style Consider using std::copy algorithm instead of a raw loop.
src/arkscript/REPL/Repl.cpp 28 style Consider using std::copy algorithm instead of a raw loop.
src/arkscript/REPL/Repl.cpp 30 style Consider using std::copy algorithm instead of a raw loop.
src/arkscript/REPL/Repl.cpp 36 style Consider using std::transform algorithm instead of a raw loop.
src/arkscript/REPL/Repl.cpp 38 style Consider using std::transform algorithm instead of a raw loop.
src/arkscript/REPL/Repl.cpp 47 style Consider using std::transform algorithm instead of a raw loop.
src/arkscript/main.cpp 76 information Unmatched suppression: constStatement

@coveralls
Copy link

Pull Request Test Coverage Report for Build 11010555711

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 87 unchanged lines in 26 files lost coverage.
  • Overall coverage increased (+0.8%) to 46.717%

Files with Coverage Reduction New Missed Lines %
src/arkreactor/Compiler/Macros/Processor.cpp 1 53.57%
src/arkreactor/Compiler/AST/Node.cpp 1 60.98%
include/Ark/VM/Value.hpp 1 55.73%
src/arkreactor/VM/Value.cpp 1 52.69%
include/Ark/VM/Value/Closure.hpp 1 29.82%
include/Ark/VM/State.hpp 1 5.88%
include/Ark/VM/Plugin.hpp 1 0.0%
src/arkreactor/Exceptions.cpp 2 49.69%
include/utf8.hpp 2 38.76%
src/arkreactor/Builtins/IO.cpp 2 21.82%
Totals Coverage Status
Change from base Build 10997961120: 0.8%
Covered Lines: 4698
Relevant Lines: 6397

💛 - Coveralls

Copy link

github-actions bot commented Sep 24, 2024

Fuzzing report

/usr/local/bin/afl-whatsup status check tool for afl-fuzz by Michal Zalewski

Summary stats

    Fuzzers alive : 0
   Dead or remote : 1 (included in stats)
   Total run time : 5 minutes, 0 seconds
      Total execs : 35 thousands
 Cumulative speed : 116 execs/sec
    Pending items : 97 faves, 905 total
 Coverage reached : 9.88%
    Crashes saved : 8
      Hangs saved : 0

Cycles without finds : 0
Time without finds : 0

[+] Captured 30076 tuples (map size 173114, highest value 255, total values 321128229) in '/dev/null'.
[+] A coverage of 30076 edges were achieved out of 173120 existing (17.37%) with 925 input files.

@SuperFola SuperFola merged commit 3489809 into dev Sep 24, 2024
1 check passed
@SuperFola SuperFola deleted the coverage branch September 24, 2024 09:36
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.

2 participants