MCPcopy Create free account
hub / github.com/cosdata/cosdata / test_binary_condition_operator_parser

Function test_binary_condition_operator_parser

src/cosql/condition.rs:132–147  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

130
131 #[test]
132 fn test_binary_condition_operator_parser() {
133 let values = [
134 ("==", BinaryConditionOperator::Equality),
135 ("!=", BinaryConditionOperator::Inequality),
136 ("<=", BinaryConditionOperator::LessEqualThan),
137 ("<", BinaryConditionOperator::LessThan),
138 (">=", BinaryConditionOperator::GreaterEqualThan),
139 (">", BinaryConditionOperator::GreaterThan),
140 ];
141
142 for (source, expected) in values {
143 let (_, parsed) = parse_binary_condition_operator(source).unwrap();
144
145 assert_eq!(parsed, expected);
146 }
147 }
148
149 #[test]
150 fn test_binary_condition_parser() {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected