[r397]: / trunk / Library / POUs / FB_AssertArrayResultStatic / svnobj  Maximize  Restore  History

Download this file

18 lines (17 with data), 4.5 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
(*
    The reason we need to keep track of these is because if the user does the same assert twice
    (if the assert fails). An instance of an array-assert is keyed/identified with the following parameters as key:
    - Array-size (in bytes) of the expecteds
    - Datatype of the expecteds
    - Array-size (in bytes) of the actuals
    - Datatype of the actuals
    - Message (string)
    - Test instance path (string)
*)
FUNCTION_BLOCK FB_AssertArrayResultStatic
VAR
    AssertArrayResults : ARRAY[1..GVL_Param_CfUnit.MaxNumberOfAssertsForEachTestSuite] OF ST_AssertArrayResult;
    (* The total amount of unique asserts *)
    TotalArrayAsserts : UINT := 0;
    (* Function block to get the current task cycle *)
    GetCurrentTaskIndex : GetCurTaskInfo;