1# DExTer : Debugging Experience Tester 2# ~~~~~~ ~ ~~ ~ ~~ 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-exception 7"""Command for specifying an expected set of values for a particular watch.""" 8 9 10from dex.command.commands.DexExpectWatchBase import DexExpectWatchBase 11 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 @staticmethod 24 def get_name(): 25 return __class__.__name__ 26 27 def _get_expected_field(self, watch): 28 return watch.value 29