fn pp_failures(
        &self,
        failures: &[(String, TestFailure)],
        test_files_len: usize,
        num_ignored: usize,
        num_filtered: usize,
    ) {
        if !failures.is_empty() {
            eprintln!("\n\nfailures:");
            for (test_fname, test) in failures {
                if let Some(ref status) = test.status {
                    eprintln!("\n---- lang_tests::{} status ----\n{}", test_fname, status);
                }
                if let Some(ref stderr) = test.stderr {
                    eprintln!(
                        "\n---- lang_tests::{} stderr ----\n{}\n",
                        test_fname, stderr
                    );
                }
                if let Some(ref stdout) = test.stdout {
                    eprintln!(
                        "\n---- lang_tests::{} stdout ----\n{}\n",
                        test_fname, stdout
                    );
                }
            }
            eprintln!("\nfailures:");
            for (test_fname, _) in failures {
                eprint!("    lang_tests::{}", test_fname);
            }
        }

        eprint!("\n\ntest result: ");
        if failures.is_empty() {
            write_with_colour("ok", Color::Green);
        } else {
            write_with_colour("FAILED", Color::Red);
        }
        eprintln!(
            ". {} passed; {} failed; {} ignored; 0 measured; {} filtered out\n",
            test_files_len - failures.len(),
            failures.len(),
            num_ignored,
            num_filtered
        );
    }
/// Pretty print any failures to `stderr`.
Pretty print any failures to `stderr`.
Pretty print any failures to ` stderr ` .
fn pp_failures(
        &self,
        failures: &[(String, TestFailure)],
        test_files_len: usize,
        num_ignored: usize,
        num_filtered: usize,
    ) {
        if !failures.is_empty() {
            eprintln!("\n\nfailures:");
            for (test_fname, test) in failures {
                if let Some(ref status) = test.status {
                    eprintln!("\n---- lang_tests::{} status ----\n{}", test_fname, status);
                }
                if let Some(ref stderr) = test.stderr {
                    eprintln!(
                        "\n---- lang_tests::{} stderr ----\n{}\n",
                        test_fname, stderr
                    );
                }
                if let Some(ref stdout) = test.stdout {
                    eprintln!(
                        "\n---- lang_tests::{} stdout ----\n{}\n",
                        test_fname, stdout
                    );
                }
            }
            eprintln!("\nfailures:");
            for (test_fname, _) in failures {
                eprint!("    lang_tests::{}", test_fname);
            }
        }
        eprint!("\n\ntest result: ");
        if failures.is_empty() {
            write_with_colour("ok", Color::Green);
        } else {
            write_with_colour("FAILED", Color::Red);
        }
        eprintln!(
            ". {} passed; {} failed; {} ignored; 0 measured; {} filtered out\n",
            test_files_len - failures.len(),
            failures.len(),
            num_ignored,
            num_filtered
        );
    }
fn pp_failures ( & self , failures : & [ ( String , TestFailure ) ] , test_files_len : usize , num_ignored : usize , num_filtered : usize , ) { if ! failures . is_empty ( ) { eprintln ! ( " \n \n " ) ; for ( test_fname , test ) in failures { if let Some ( ref status ) = test . status { eprintln ! ( " \n \n " test_fname status ) ; } if let Some ( ref stderr ) = test . stderr { eprintln ! ( " \n \n \n " test_fname stderr ) ; } if let Some ( ref stdout ) = test . stdout { eprintln ! ( " \n \n \n " test_fname stdout ) ; } } eprintln ! ( " \n " ) ; for ( test_fname , _ ) in failures { eprint ! ( " " test_fname ) ; } } eprint ! ( " \n \n " ) ; if failures . is_empty ( ) { write_with_colour ( " " , Color :: Green ) ; } else { write_with_colour ( " " , Color :: Red ) ; } eprintln ! ( " \n " test_files_len failures len ( ) failures len ( ) num_ignored num_filtered ) ; }
Pretty print any failures to `stderr`.
Pretty print any failures to ` stderr ` .
&self
failures
&[(String, TestFailure)]
test_files_len
usize
num_ignored
usize
num_filtered
usize
&self
failures
&[(String, TestFailure)]
test_files_len
usize
num_ignored
usize
num_filtered
usize