()
| 436 | |
| 437 | #[tokio::test] |
| 438 | async 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] |
| 458 | async fn label_selector_single_match() { |
nothing calls this directly
no test coverage detected