cmock学习笔记20190821

2019-08-21  本文已影响0人  阿群1986

英文教程1: unity+cmock基础篇

设置:treat_externs:

:cmock:
  :mock_prefix: mock_
  :when_no_prototypes: :warn
  :enforce_strict_ordering: TRUE
  :plugins:
    - :ignore
    - :callback
  :treat_as:
    uint8:    HEX8
    uint16:   HEX16
    uint32:   UINT32
    int8:     INT8
    bool:     UINT8
  :includes:
    - <stdbool.h>
    - <stdint.h>
  :treat_externs: :include  # Now the extern-ed functions will be mocked.

英文教程2: cmock高级篇

上一篇 下一篇

猜你喜欢

热点阅读