MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / labels_round_trip

Function labels_round_trip

crates/openshell-server/src/persistence/tests.rs:438–455  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

436
437#[tokio::test]
438async fn labels_round_trip() {
439 let store = test_store().await;
440
441 let labels = r#"{"env":"production","team":"platform"}"#;
442 store
443 .put(
444 "sandbox",
445 "id-1",
446 "labeled-sandbox",
447 b"payload",
448 Some(labels),
449 )
450 .await
451 .unwrap();
452
453 let record = store.get("sandbox", "id-1").await.unwrap().unwrap();
454 assert_eq!(record.labels.as_deref(), Some(labels));
455}
456
457#[tokio::test]
458async fn label_selector_single_match() {

Callers

nothing calls this directly

Calls 3

test_storeFunction · 0.70
putMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected