main content

collect coverage for code -凯发k8网页登录

measure coverage for code in model elements or generated from models

simulink® coverage™ measures code coverage and indicates the untested elements of your design. you can collect coverage for the c/c code in supported model elements, matlab® function blocks, or the code generated from models in software-in-the-loop (sil) mode or processor-in-the-loop (pil) mode. simulink coverage measures several types of code coverage analysis, such as statement, condition, decision, and modified condition/decision coverage.

functions

build coverage-compatible mex-function from c/c code
create model coverage test specification object
simulate and return model coverage results for test objects

topics

code coverage basics


  • perform several types of code coverage analysis for the code within supported simulink elements or for code generated from models in sil mode or pil mode.

  • set options for code coverage.

coverage for matlab code used in simulink


  • use model coverage for matlab function blocks and interpret the results.

  • this example explains how model coverage relates to matlab® code inside a matlab function block.

coverage for integrated c/c code


  • record coverage for models with a combination of code blocks and other simulink blocks.
  • coverage for custom c/c code in simulink models
    analyze model coverage for c/c s-functions.

  • view coverage results for the c/c code in s-function blocks in your model.

coverage for generated code


  • configure code coverage for sil and pil simulations and review results.

  • this example shows how to view code coverage results and justify code coverage outcomes directly from the code pane in simulink®.
网站地图