var searchIndex = {}; searchIndex["expectest"] = {"doc":"Crate provides matchers and matcher functions for unit testing.","items":[[0,"prelude","expectest","A module contains reexport of all useful functions.",null,null],[5,"expect","expectest::prelude","Creates a new instance of `ActualValue` using `value`.",null,{"inputs":[{"name":"a"}],"output":{"name":"actualvalue"}}],[5,"be_equal_to","","Returns a new `BeEqualTo` matcher.",null,{"inputs":[{"name":"e"}],"output":{"name":"beequalto"}}],[5,"be_less_than","","Returns a new `PartialOrder` (less than) matcher.",null,{"inputs":[{"name":"e"}],"output":{"name":"partialorder"}}],[5,"be_less_or_equal_to","","Returns a new `PartialOrder` (less or equal to) matcher.",null,{"inputs":[{"name":"e"}],"output":{"name":"partialorder"}}],[5,"be_greater_than","","Returns a new `PartialOrder` (greater than) matcher.",null,{"inputs":[{"name":"e"}],"output":{"name":"partialorder"}}],[5,"be_greater_or_equal_to","","Returns a new `PartialOrder` (greater or equal to) matcher.",null,{"inputs":[{"name":"e"}],"output":{"name":"partialorder"}}],[5,"be_true","","Returns a new `BeTrue` matcher.",null,{"inputs":[],"output":{"name":"betrue"}}],[5,"be_false","","Returns a new `BeFalse` matcher.",null,{"inputs":[],"output":{"name":"befalse"}}],[5,"be_some","","Returns a new `BeSome` matcher.",null,{"inputs":[],"output":{"name":"besome"}}],[5,"be_none","","Returns a new `BeNone` matcher.",null,{"inputs":[],"output":{"name":"benone"}}],[5,"be_ok","","Returns a new `BeOk` matcher.",null,{"inputs":[],"output":{"name":"beok"}}],[5,"be_err","","Returns a new `BeErr` matcher.",null,{"inputs":[],"output":{"name":"beerr"}}],[5,"be_close_to","","Returns a new `BeCloseTo` matcher with default `delta` equal to `0.001`.",null,{"inputs":[{"name":"e"}],"output":{"name":"becloseto"}}],[5,"be_empty","","Returns a new `BeEmpty` matcher.",null,{"inputs":[],"output":{"name":"beempty"}}],[5,"have_count","","Returns a new `HaveCount` matcher.",null,{"inputs":[{"name":"usize"}],"output":{"name":"havecount"}}],[0,"core","expectest","A module contains core types of this library.",null,null],[3,"SourceLocation","expectest::core","Represents a location in a source code.",null,null],[12,"file","","Name of a file.",0,null],[12,"line","","Number of line in the file.",0,null],[3,"ActualValue","","Represent an actual value and optional location of a test case in a source code.",null,null],[3,"Failure","","Represents data for `Failure` variant of a `TestResult`.",null,null],[4,"Join","","An enum used to join two parts of a failure message.",null,null],[13,"To","",""to" join.",1,null],[13,"ToNot","",""to not" join.",1,null],[13,"NotTo","",""not to" join.",1,null],[4,"TestResult","","Represents result of unit testing.",null,null],[13,"Success","","Denotes success.",2,null],[13,"Failure","","Denotes failure.",2,null],[5,"expect","","Creates a new instance of `ActualValue` using `value`.",null,{"inputs":[{"name":"a"}],"output":{"name":"actualvalue"}}],[11,"clone","","",0,null],[11,"new","","Creates a new instance of `SourceLocation` using `file` and `line`.",0,{"inputs":[{"name":"str"},{"name":"u32"}],"output":{"name":"sourcelocation"}}],[11,"fmt","","",0,null],[11,"fmt","","",0,null],[11,"fmt","","",3,null],[11,"new","","Creates a new instance of `ActualValue` using `value`.",3,{"inputs":[{"name":"a"}],"output":{"name":"self"}}],[11,"location","","Sets a new `SourceLocation`.",3,null],[11,"to","","Performs assertion matching using `matcher`. Returns a new instance of `TestResult`.",3,null],[11,"to_not","","Performs negation matching using `matcher`. Returns a new instance of `TestResult`.",3,null],[11,"not_to","","Performs negation matching using `matcher`. Returns a new instance of `TestResult`.",3,null],[11,"fmt","","",1,null],[11,"eq","","",1,null],[11,"fmt","","",1,null],[11,"is_assertion","","Checks if `Join` is assertion.",1,null],[11,"fmt","","",2,null],[11,"new_success","","Creates a new instance of `TestResult` with a `Success` variant.",2,{"inputs":[],"output":{"name":"self"}}],[11,"new_failure","","Creates a new instance of `TestResult` with a `Failure` variant using message\nand location.",2,{"inputs":[{"name":"string"},{"name":"option"}],"output":{"name":"self"}}],[11,"assert_eq_message","","Asserts that `message` is equal to the failure message.",2,null],[11,"fmt","","",4,null],[11,"drop","","",4,null],[8,"Matcher","","A Matcher trait.",null,null],[10,"failure_message","","Returns a failure message.",5,null],[10,"matches","","Checks if an actual value matches an expected value.",5,null],[0,"matchers","expectest","A module contains matchers.",null,null],[3,"BeEqualTo","expectest::matchers","A matcher for `be_equal_to` assertions for types that conforms to\n`PartialEq` trait.",null,null],[3,"PartialOrder","","A matcher for types that conforms to `PartialOrd` trait.",null,null],[3,"BeTrue","","A matcher for `be_true` assertions.",null,null],[3,"BeFalse","","A matcher for `be_false` assertions.",null,null],[3,"BeSome","","A matcher for `be_some` assertions for `Option<T>` types.",null,null],[3,"BeNone","","A matcher for `be_none` assertions for `Option<T>` types.",null,null],[3,"BeOk","","A matcher for `be_ok` assertions for `Result<T, E>` type.",null,null],[3,"BeErr","","A matcher for `be_err` assertions for `Result<T, E>` type.",null,null],[3,"BeCloseTo","","A matcher for `be_close_to` assertions for float numbers.",null,null],[3,"BeEmpty","","A matcher for `be_empty` assertions.",null,null],[3,"HaveCount","","A matcher for `have_count` assertions.",null,null],[5,"be_equal_to","","Returns a new `BeEqualTo` matcher.",null,{"inputs":[{"name":"e"}],"output":{"name":"beequalto"}}],[5,"be_less_than","","Returns a new `PartialOrder` (less than) matcher.",null,{"inputs":[{"name":"e"}],"output":{"name":"partialorder"}}],[5,"be_less_or_equal_to","","Returns a new `PartialOrder` (less or equal to) matcher.",null,{"inputs":[{"name":"e"}],"output":{"name":"partialorder"}}],[5,"be_greater_than","","Returns a new `PartialOrder` (greater than) matcher.",null,{"inputs":[{"name":"e"}],"output":{"name":"partialorder"}}],[5,"be_greater_or_equal_to","","Returns a new `PartialOrder` (greater or equal to) matcher.",null,{"inputs":[{"name":"e"}],"output":{"name":"partialorder"}}],[5,"be_true","","Returns a new `BeTrue` matcher.",null,{"inputs":[],"output":{"name":"betrue"}}],[5,"be_false","","Returns a new `BeFalse` matcher.",null,{"inputs":[],"output":{"name":"befalse"}}],[5,"be_some","","Returns a new `BeSome` matcher.",null,{"inputs":[],"output":{"name":"besome"}}],[5,"be_none","","Returns a new `BeNone` matcher.",null,{"inputs":[],"output":{"name":"benone"}}],[5,"be_ok","","Returns a new `BeOk` matcher.",null,{"inputs":[],"output":{"name":"beok"}}],[5,"be_err","","Returns a new `BeErr` matcher.",null,{"inputs":[],"output":{"name":"beerr"}}],[5,"be_close_to","","Returns a new `BeCloseTo` matcher with default `delta` equal to `0.001`.",null,{"inputs":[{"name":"e"}],"output":{"name":"becloseto"}}],[5,"be_empty","","Returns a new `BeEmpty` matcher.",null,{"inputs":[],"output":{"name":"beempty"}}],[5,"have_count","","Returns a new `HaveCount` matcher.",null,{"inputs":[{"name":"usize"}],"output":{"name":"havecount"}}],[11,"failure_message","","",6,null],[11,"matches","","",6,null],[11,"failure_message","","",7,null],[11,"matches","","",7,null],[11,"failure_message","","",8,null],[11,"matches","","",8,null],[11,"failure_message","","",9,null],[11,"matches","","",9,null],[11,"value","","Returns a new `BeSomeValue` matcher.",10,null],[11,"failure_message","","",10,null],[11,"matches","","",10,null],[11,"failure_message","","",11,null],[11,"matches","","",11,null],[11,"value","","Returns a new `BeOkValue` matcher.",12,null],[11,"failure_message","","",12,null],[11,"matches","","",12,null],[11,"value","","Returns a new `BeErrValue` matcher.",13,null],[11,"failure_message","","",13,null],[11,"matches","","",13,null],[11,"delta","","Sets new `delta` value.",14,null],[11,"failure_message","","",14,null],[11,"matches","","",14,null],[11,"failure_message","","",15,null],[11,"matches","","",15,null],[11,"failure_message","","",16,null],[11,"matches","","",16,null],[14,"expect!","expectest","A macro intended to use instead of `expect` function.",null,null]],"paths":[[3,"SourceLocation"],[4,"Join"],[4,"TestResult"],[3,"ActualValue"],[3,"Failure"],[8,"Matcher"],[3,"BeEqualTo"],[3,"PartialOrder"],[3,"BeTrue"],[3,"BeFalse"],[3,"BeSome"],[3,"BeNone"],[3,"BeOk"],[3,"BeErr"],[3,"BeCloseTo"],[3,"BeEmpty"],[3,"HaveCount"]]}; initSearch(searchIndex);