Skip to main content

Module test_support

Module test_support 

Source
Expand description

Support functions for testing, also expoeted

Re-exportsยง

use crate::parse2::NetdocParseable; ๐Ÿ”’
use crate::parse2::NetdocParseableFields; ๐Ÿ”’
use crate::parse2::ParseInput; ๐Ÿ”’
use crate::parse2::parse_netdoc; ๐Ÿ”’
use derive_deftly::Deftly; ๐Ÿ”’
use itertools::chain; ๐Ÿ”’
use itertools::chain; ๐Ÿ”’
use std::any::Any; ๐Ÿ”’
use std::any::TypeId; ๐Ÿ”’
use std::collections::HashMap; ๐Ÿ”’
use std::fmt::Display; ๐Ÿ”’
use std::sync::Mutex; ๐Ÿ”’

Functionsยง

assert_eq_or_diff
Assert that a = b; if not, panic with a unidiff mentioning a_what, b_what and message
parse_test_document
Parse text as document type D, for use in testing
parse_testcase_from_netdoc
Parse a test case from a netdoc-style test case string
regsub
Substitute all re in update with repl