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 types and functions.",null,null],[3,"ActualValue","expectest::prelude","Wrapps an actual value and a location in a source code.",null,null],[3,"BeSome","","A matcher for `be_some` 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],[5,"expect","","A function that intended to replace an `expect!` macro if desired.",null,{"inputs":[{"name":"a"}],"output":{"name":"actualvalue"}}],[5,"be_equal_to","","Returns new `BeEqualTo` matcher.",null,{"inputs":[{"name":"e"}],"output":{"name":"beequalto"}}],[5,"be_less_than","","Returns new `PartialOrder` (less than) matcher.",null,{"inputs":[{"name":"e"}],"output":{"name":"partialorder"}}],[5,"be_less_or_equal_to","","Returns new `PartialOrder` (less or equal to) matcher.",null,{"inputs":[{"name":"e"}],"output":{"name":"partialorder"}}],[5,"be_greater_than","","",null,{"inputs":[{"name":"e"}],"output":{"name":"partialorder"}}],[5,"be_greater_or_equal_to","","Returns new `PartialOrder` (greater or equal to) matcher.",null,{"inputs":[{"name":"e"}],"output":{"name":"partialorder"}}],[5,"be_true","","Returns new `BeTrue` matcher.",null,{"inputs":[],"output":{"name":"betrue"}}],[5,"be_false","","Returns new `BeFalse` matcher.",null,{"inputs":[],"output":{"name":"befalse"}}],[5,"be_some","","Returns new `BeSome` matcher.",null,{"inputs":[],"output":{"name":"besome"}}],[5,"be_none","","Returns new `BeNone` matcher.",null,{"inputs":[],"output":{"name":"benone"}}],[5,"be_ok","","Returns new `BeOk` matcher.",null,{"inputs":[],"output":{"name":"beok"}}],[5,"be_err","","Returns new `BeErr` matcher.",null,{"inputs":[],"output":{"name":"beerr"}}],[5,"be_close_to","","Returns new `BeCloseTo` matcher with default `delta` equal to `0.001`.",null,{"inputs":[{"name":"e"}],"output":{"name":"becloseto"}}],[5,"be_empty","","Returns new `BeEmpty` matcher.",null,{"inputs":[],"output":{"name":"beempty"}}],[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","","Wrapps an actual value and a location in a source code.",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],[5,"expect","","A function that intended to replace an `expect!` macro if desired.",null,{"inputs":[{"name":"a"}],"output":{"name":"actualvalue"}}],[5,"failure","","Prints a failure message and panics.",null,{"inputs":[{"name":"string"},{"name":"option"}],"output":null}],[11,"clone","","",0,null],[11,"new","","Creates new `SourceLocation` using `file` and `line`.",0,{"inputs":[{"name":"str"},{"name":"u32"}],"output":{"name":"sourcelocation"}}],[11,"fmt","","",0,null],[11,"location","expectest::prelude","Sets new `SourceLocation`.",2,null],[11,"to","","Performs assertion with "to" word. Prints a failure message and panics\nif an actual value does not match with an expected value.",2,null],[11,"to_not","","Performs negation with "to not" words. Prints a failure message and\npanics if an actual value matches with an expected value.",2,null],[11,"not_to","","Performs negation with "not to" words. Prints a failure message and\npanics if an actual value matches with an expected value.",2,null],[11,"fmt","expectest::core","",1,null],[11,"eq","","",1,null],[11,"fmt","","",1,null],[11,"is_assertion","","Checks if `Join` is assertion.",1,null],[8,"Matcher","","A Matcher trait.",null,null],[10,"failure_message","","Returns a failure message.",3,null],[10,"matches","","Checks if an actual value matches an expected value.",3,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],[5,"be_equal_to","","Returns new `BeEqualTo` matcher.",null,{"inputs":[{"name":"e"}],"output":{"name":"beequalto"}}],[5,"be_less_than","","Returns new `PartialOrder` (less than) matcher.",null,{"inputs":[{"name":"e"}],"output":{"name":"partialorder"}}],[5,"be_less_or_equal_to","","Returns new `PartialOrder` (less or equal to) matcher.",null,{"inputs":[{"name":"e"}],"output":{"name":"partialorder"}}],[5,"be_greater_than","","",null,{"inputs":[{"name":"e"}],"output":{"name":"partialorder"}}],[5,"be_greater_or_equal_to","","Returns new `PartialOrder` (greater or equal to) matcher.",null,{"inputs":[{"name":"e"}],"output":{"name":"partialorder"}}],[5,"be_true","","Returns new `BeTrue` matcher.",null,{"inputs":[],"output":{"name":"betrue"}}],[5,"be_false","","Returns new `BeFalse` matcher.",null,{"inputs":[],"output":{"name":"befalse"}}],[5,"be_some","","Returns new `BeSome` matcher.",null,{"inputs":[],"output":{"name":"besome"}}],[5,"be_none","","Returns new `BeNone` matcher.",null,{"inputs":[],"output":{"name":"benone"}}],[5,"be_ok","","Returns new `BeOk` matcher.",null,{"inputs":[],"output":{"name":"beok"}}],[5,"be_err","","Returns new `BeErr` matcher.",null,{"inputs":[],"output":{"name":"beerr"}}],[5,"be_close_to","","Returns new `BeCloseTo` matcher with default `delta` equal to `0.001`.",null,{"inputs":[{"name":"e"}],"output":{"name":"becloseto"}}],[5,"be_empty","","Returns new `BeEmpty` matcher.",null,{"inputs":[],"output":{"name":"beempty"}}],[11,"failure_message","","",4,null],[11,"matches","","",4,null],[11,"failure_message","","",5,null],[11,"matches","","",5,null],[11,"failure_message","","",6,null],[11,"matches","","",6,null],[11,"failure_message","","",7,null],[11,"matches","","",7,null],[11,"value","expectest::prelude","Sets new value.",8,null],[11,"failure_message","","",8,null],[11,"matches","","",8,null],[11,"failure_message","expectest::matchers","",9,null],[11,"matches","","",9,null],[11,"value","expectest::prelude","Sets new `ok` value.",10,null],[11,"failure_message","","",10,null],[11,"matches","","",10,null],[11,"value","","Sets new `err` value.",11,null],[11,"failure_message","","",11,null],[11,"matches","","",11,null],[11,"delta","","Sets new `delta` value.",12,null],[11,"failure_message","","",12,null],[11,"matches","","",12,null],[11,"failure_message","expectest::matchers","",13,null],[11,"matches","","",13,null],[0,"traits","expectest","A module contains helpful traits.",null,null],[0,"is_empty","expectest::traits","",null,null],[8,"IsEmpty","expectest::traits::is_empty","An IsEmpty trait for types that can be checked for emptiness.",null,null],[10,"is_empty","","Checks if something is empty.",14,null],[0,"utils","expectest","An utils module.",null,null],[5,"is_some_value","expectest::utils","Checks equality of inner values of `some` and `value`. If `value` is\n`Option::None` checks that `some` is `Option::Some`.",null,{"inputs":[{"name":"option"},{"name":"option"}],"output":{"name":"bool"}}],[14,"expect!","expectest","A macro used to simplify usage of this library.",null,null]],"paths":[[3,"SourceLocation"],[4,"Join"],[3,"ActualValue"],[8,"Matcher"],[3,"BeEqualTo"],[3,"PartialOrder"],[3,"BeTrue"],[3,"BeFalse"],[3,"BeSome"],[3,"BeNone"],[3,"BeOk"],[3,"BeErr"],[3,"BeCloseTo"],[3,"BeEmpty"],[8,"IsEmpty"]]}; initSearch(searchIndex);