MCPcopy Create free account
hub / github.com/cel-rust/cel-rust / test

Function test

cel/src/parser/parser.rs:1258–2074  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1256
1257 #[test]
1258 fn test() {
1259 let test_cases = [
1260 TestInfo {
1261 i: r#""A""#,
1262 p: r#""A"^#1:*expr.Constant_StringValue#"#,
1263 e: "",
1264 ..Default::default()
1265 },
1266 TestInfo {
1267 i: r#"true"#,
1268 p: r#"true^#1:*expr.Constant_BoolValue#"#,
1269 e: "",
1270 ..Default::default()
1271 },
1272 TestInfo {
1273 i: r#"false"#,
1274 p: r#"false^#1:*expr.Constant_BoolValue#"#,
1275 e: "",
1276 ..Default::default()
1277 },
1278 TestInfo {
1279 i: "0",
1280 p: "0^#1:*expr.Constant_Int64Value#",
1281 e: "",
1282 ..Default::default()
1283 },
1284 TestInfo {
1285 i: "42",
1286 p: "42^#1:*expr.Constant_Int64Value#",
1287 e: "",
1288 ..Default::default()
1289 },
1290 TestInfo {
1291 i: "0xF",
1292 p: "15^#1:*expr.Constant_Int64Value#",
1293 e: "",
1294 ..Default::default()
1295 },
1296 TestInfo {
1297 i: "0u",
1298 p: "0u^#1:*expr.Constant_Uint64Value#",
1299 e: "",
1300 ..Default::default()
1301 },
1302 TestInfo {
1303 i: "23u",
1304 p: "23u^#1:*expr.Constant_Uint64Value#",
1305 e: "",
1306 ..Default::default()
1307 },
1308 TestInfo {
1309 i: "24u",
1310 p: "24u^#1:*expr.Constant_Uint64Value#",
1311 e: "",
1312 ..Default::default()
1313 },
1314 TestInfo {
1315 i: "0xFu",

Callers

nothing calls this directly

Calls 2

parseMethod · 0.80

Tested by

no test coverage detected