brintos

brintos / llvm-project-archived public Read only

0
0
Text · 866 B · df5bb09 Raw
29 lines · python
1# DExTer : Debugging Experience Tester2# ~~~~~~   ~         ~~         ~   ~~3#4# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.5# See https://llvm.org/LICENSE.txt for license information.6# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception7"""Command for specifying an expected set of values for a particular watch."""8 9 10from dex.command.commands.DexExpectWatchBase import DexExpectWatchBase11 12 13class DexExpectWatchValue(DexExpectWatchBase):14    """Expect the expression `expr` to evaluate to the list of `values`15    sequentially.16 17    DexExpectWatchValue(expr, *values [,**from_line=1][,**to_line=Max]18                        [,**on_line])19 20    See Commands.md for more info.21    """22 23    @staticmethod24    def get_name():25        return __class__.__name__26 27    def _get_expected_field(self, watch):28        return watch.value29