MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_frontmatter_labels

Function test_frontmatter_labels

atomic-cli/src/commands/vault/context.rs:1361–1368  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1359
1360 #[test]
1361 fn test_frontmatter_labels() {
1362 assert_eq!(
1363 frontmatter_labels(r#"{"labels":["auth","backend"]}"#),
1364 vec!["auth".to_string(), "backend".to_string()]
1365 );
1366 assert!(frontmatter_labels("{}").is_empty());
1367 assert!(frontmatter_labels("not json").is_empty());
1368 }
1369
1370 #[test]
1371 fn test_apply_budget_truncates_evenly() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected