Skip to content

Commit

Permalink
https://github.com/awslabs/smithy-rs/pull/2647#pullrequestreview-1404…
Browse files Browse the repository at this point in the history
…401371
  • Loading branch information
thomas-k-cameron committed Apr 27, 2023
1 parent 53037a2 commit cb15e4d
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion rust-runtime/aws-smithy-types/src/blob.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ impl<'de> Deserialize<'de> for Blob {
feature = "serde-serialize",
feature = "serde-deserialize"
))]
mod test {
mod test_serde {
use crate::Blob;
use serde::{Deserialize, Serialize};
use std::collections::HashMap;
Expand Down Expand Up @@ -163,3 +163,14 @@ mod test {
assert_eq!(for_test, de);
}
}


#[cfg(test)]
mod test {
use crate::Blob;

#[test]
fn is_serde_enabled() {
assert!(serde_json::from_str::<Blob>("QVdT").is_err());
}
}

0 comments on commit cb15e4d

Please sign in to comment.