RustTestResultParser

public class RustTestResultParser
extends MultiLineReceiver

java.lang.Object
   ↳ com.android.ddmlib.MultiLineReceiver
     ↳ com.android.tradefed.testtype.rust.RustTestResultParser


Interpretuje wyniki testów przeprowadzonych za pomocą platformy testów jednostkowych Rusta i przekształca je w wywołania w serii ITestInvocationListener.

Szuka tych danych wyjściowych z testów Rusta:

running 10 tests test LexError ... ok <0.001s> test idents ... FAILED <0.000s> test make_sure_no_proc_macro ... ignored test test_scalar_div_rem_zero ... ignored, Android sometimes uses panic_abort ... ---- tests::idents stdout ---- thread 'main' panicked at 'assertion failed: `(left == right)` ... test result: ok. 10 passed; 1 failed; 1 ignored; 0 measured; 0 filtered out @See https://doc.rust-lang.org/book/ch11-00-testing.html

Podsumowanie

Publiczne konstruktory

RustTestResultParser( listeners, String runName)

Utwórz nowego RustTestResultParser, który podlega podane ITestInvocationListener.

Metody publiczne

void done()

Wysyłanie nagranych wyników testu do wszystkich słuchaczy.

boolean isCancelled()
void processNewLines(String[] lines)

Przetwarzanie danych wyjściowych testów jednostkowych Rust.

Publiczne konstruktory

RustTestResultParser

public RustTestResultParser ( listeners, 
                String runName)

Utwórz nowego RustTestResultParser, który podlega podane ITestInvocationListener.

Parametry
listeners : detektory wywołania testu,

runName String: nazwa testu

Metody publiczne

gotowe

public void done ()

Wysyłanie nagranych wyników testu do wszystkich słuchaczy.

isCancelled

public boolean isCancelled ()

Zwroty
boolean

processNewLines

public void processNewLines (String[] lines)

Przetwarzanie danych wyjściowych testów jednostkowych Rust.

Parametry
lines String: tablica zawierająca nowe wiersze.