pub fn assert_writes(&self, expected: &[(String, DmlOperation)]) {
        use dml::test_util::assert_op_eq;

        let actual = self.writes();

        assert_eq!(
            actual.len(),
            expected.len(),
            "number of writes differ ({} VS {})",
            actual.len(),
            expected.len()
        );

        for ((actual_db, actual_write), (expected_db, expected_write)) in
            actual.iter().zip(expected)
        {
            assert_eq!(
                actual_db, expected_db,
                "database names differ (\"{}\" VS \"{}\")",
                actual_db, expected_db
            );
            assert_op_eq(actual_write, expected_write);
        }
    }
/// Assert that writes are as expected.
Assert that writes are as expected.
Assert that writes are as expected .
pub fn assert_writes(&self, expected: &[(String, DmlOperation)]) {
        use dml::test_util::assert_op_eq;
        let actual = self.writes();
        assert_eq!(
            actual.len(),
            expected.len(),
            "number of writes differ ({} VS {})",
            actual.len(),
            expected.len()
        );
        for ((actual_db, actual_write), (expected_db, expected_write)) in
            actual.iter().zip(expected)
        {
            assert_eq!(
                actual_db, expected_db,
                "database names differ (\"{}\" VS \"{}\")",
                actual_db, expected_db
            );
            assert_op_eq(actual_write, expected_write);
        }
    }
pub fn assert_writes ( & self , expected : & [ ( String , DmlOperation ) ] ) { use dml :: test_util :: assert_op_eq ; let actual = self . writes ( ) ; assert_eq ! ( actual len ( ) expected len ( ) " " actual len ( ) expected len ( ) ) ; for ( ( actual_db , actual_write ) , ( expected_db , expected_write ) ) in actual . iter ( ) . zip ( expected ) { assert_eq ! ( actual_db expected_db " \" \" \" \" " actual_db expected_db ) ; assert_op_eq ( actual_write , expected_write ) ; } }
Assert that writes are as expected.
Assert that writes are as expected .
&self
expected
&[(String, DmlOperation)]
&self
expected
&[(String, DmlOperation)]