#[tokio::test]
async fn rejects_blank_store_name() {
    let result = envseal_mcp::tools::store::execute(envseal_mcp::tools::store::StoreParams {
        name: "   ".to_string(),
        value: "secret".to_string(),
        force: false,
    })
    .await;

    let err = result.expect_err("expected blank name to be rejected");
    assert!(
        err.contains("name must not be empty"),
        "unexpected error: {err}"
    );
}
