1"""Contains the logic that compares variables to `INPUT_DATA` via the entrypoint
2▶`check(var_name, breakpoint_idx, frame)`. These comparisons report errors to stdout, and then return
3a `Result` indicating whether or not the variable matched.
4
· · ·
5▶Checks *do not* stop after the first encountered error. Some redundant information may be ommitted
6(e.g. checking pretty printed type name if the synthetic isn't properly attached to the type).
7"""
· · ·
21 Result,
22 Variable,
23▶ print_error,
24 print_mismatch,
25)
· · ·
52 valobj: lldb.SBValue = frame.var(var_name)
53 if not valobj.IsValid():
54▶ print_error(var_name, "Unable to find variable")
55 return Result.Mismatch
56
· · ·
59 try:
60 expected = INPUT_DATA.breakpoints[breakpoint_idx][var_name]
61▶ except IndexError:
62 print_error("INPUT_DATA", f"No data found for breakpoint #{breakpoint_idx}")
63 return Result.Mismatch
+ 39 more matches in this file