MCPcopy Create free account
hub / github.com/cloudflare/saffron / limits

Function limits

saffron/src/parse.rs:1255–1264  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1253
1254 #[test]
1255 fn limits() {
1256 assert!(matches!(minutes_expr("60"), Err(_)));
1257 assert!(matches!(minutes_expr("0-60"), Err(_)));
1258 // a step greater than the max value is not allowed (since it doesn't make sense)
1259 assert!(matches!(minutes_expr("0/60"), Err(_)));
1260 assert!(matches!(minutes_expr("0-60/5"), Err(_)));
1261 // a step of 0 is not allowed (since it doesn't make sense)
1262 assert!(matches!(minutes_expr("0/0"), Err(_)));
1263 assert!(matches!(minutes_expr("0-59/0"), Err(_)));
1264 }
1265 }
1266
1267 mod hours {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…