RustTestResultParser

public class RustTestResultParser
extends MultiLineReceiver

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


Interpretuje dane wyjściowe testów przeprowadzonych za pomocą platformy unittest Rust i przekształca je w wywołania serii ITestInvocationListener.

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

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

Konstruktory publiczne

RustTestResultParser(ITestInvocationListener listener, String runName)

Utwórz nowy RustTestResultParser, który będzie zgłaszać wyniki do podanego ITestInvocationListener.

RustTestResultParser(Collection<ITestInvocationListener> listeners, String runName)

Utwórz nowy RustTestResultParser, który będzie zgłaszać wyniki do podanych ITestInvocationListener.

Metody publiczne

void done()

Wyślij zarejestrowane wyniki testów do wszystkich detektorów.

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

Przetwarzaj dane wyjściowe unittest Rust.

Konstruktory publiczne

RustTestResultParser

public RustTestResultParser (ITestInvocationListener listener, 
                String runName)

Utwórz nowy RustTestResultParser, który będzie zgłaszać wyniki do podanego ITestInvocationListener.

Parametry
listener ITestInvocationListener: detektor wywołania testu

runName String: nazwa testu

RustTestResultParser

public RustTestResultParser (Collection<ITestInvocationListener> listeners, 
                String runName)

Utwórz nowy RustTestResultParser, który będzie zgłaszać wyniki do podanych ITestInvocationListener.

Parametry
listeners Collection: detektory wywołania testu

runName String: nazwa testu

Metody publiczne

done

public void done ()

Wyślij zarejestrowane wyniki testów do wszystkich detektorów.

isCancelled

public boolean isCancelled ()

Zwraca
boolean

processNewLines

public void processNewLines (String[] lines)

Przetwarzaj dane wyjściowe unittest Rust.

Parametry
lines String: tablica zawierająca nowe wiersze.