Skip to content

Instantly share code, notes, and snippets.

@sourcefrog
Created August 6, 2022 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sourcefrog/7ec27bceea3fd27cf729310e195ff9b8 to your computer and use it in GitHub Desktop.
Save sourcefrog/7ec27bceea3fd27cf729310e195ff9b8 to your computer and use it in GitHub Desktop.
cargo-mutants on fs_at
Freshen source tree ... ok in 0.333s
Copy source and build products to scratch directory ... 58 MB in 0.107s
Unmutated baseline ... ok in 0.248s
Auto-set test timeout to 20.0s
Found 41 mutants to test
src/win.rs:83: replace OpenOptionsImpl::read with () ... NOT CAUGHT in 0.119s
src/win.rs:514: replace <impl OpenOptionsExt for OpenOptions>::security_qos_effective_only -> &mut Self with Default::default() ... NOT CAUGHT in 0.483s
src/win/sugar.rs:21: replace <impl Display for NTStatusError>::fmt -> fmt::Result with Ok(Default::default()) ... NOT CAUGHT in 0.117s
src/win.rs:253: replace OpenOptionsImpl::get_access_mode -> Result<DesiredAccess> with Ok(Default::default()) ... NOT CAUGHT in 0.118s
src/win.rs:95: replace OpenOptionsImpl::create with () ... NOT CAUGHT in 0.117s
src/win.rs:235: replace OpenOptionsImpl::get_file_disposition -> Result<FileDisposition> with Ok(Default::default()) ... NOT CAUGHT in 0.117s
src/win.rs:87: replace OpenOptionsImpl::write with () ... NOT CAUGHT in 0.415s
src/win.rs:91: replace OpenOptionsImpl::truncate with () ... NOT CAUGHT in 0.118s
src/win.rs:282: replace OpenOptionsImpl::with_security_qos with () ... NOT CAUGHT in 0.119s
src/win/sugar.rs:29: replace <impl From for std::io::Error>::from -> Self with Default::default() ... NOT CAUGHT in 0.434s
src/win.rs:110: replace OpenOptionsImpl::do_create_file -> Result<File> with Ok(Default::default()) ... NOT CAUGHT in 0.134s
src/win.rs:497: replace <impl OpenOptionsExt for OpenOptions>::security_descriptor -> &mut Self with Default::default() ... NOT CAUGHT in 0.118s
src/win.rs:487: replace <impl OpenOptionsExt for OpenOptions>::file_attributes -> &mut Self with Default::default() ... NOT CAUGHT in 0.118s
src/win.rs:508: replace <impl OpenOptionsExt for OpenOptions>::security_qos_context_tracking -> &mut Self with Default::default() ... NOT CAUGHT in 0.118s
src/win.rs:482: replace <impl OpenOptionsExt for OpenOptions>::allocation_size -> &mut Self with Default::default() ... NOT CAUGHT in 0.117s
src/win.rs:208: replace OpenOptionsImpl::mkdir_at -> Result<File> with Ok(Default::default()) ... NOT CAUGHT in 0.399s
src/win.rs:502: replace <impl OpenOptionsExt for OpenOptions>::security_qos_impersonation -> &mut Self with Default::default() ... NOT CAUGHT in 0.117s
src/win.rs:492: replace <impl OpenOptionsExt for OpenOptions>::object_attributes -> &mut Self with Default::default() ... NOT CAUGHT in 0.117s
src/win/sugar.rs:11: replace NTStatusError::from -> std::result::Result<(), NTStatusError> with Ok(Default::default()) ... NOT CAUGHT in 0.117s
src/win.rs:99: replace OpenOptionsImpl::create_new with () ... NOT CAUGHT in 0.468s
src/win/sugar.rs:45: replace <impl TryFrom for OSUnicodeString>::try_from -> std::result::Result<Self, Self::Error> with Ok(Default::default()) ... NOT CAUGHT in 0.416s
src/win.rs:223: replace OpenOptionsImpl::open_at -> Result<File> with Ok(Default::default()) ... NOT CAUGHT in 0.118s
src/win.rs:64: replace <impl Debug for OpenOptionsImpl>::fmt -> fmt::Result with Ok(Default::default()) ... NOT CAUGHT in 0.467s
41 mutants tested in 0:09: 23 missed, 7 caught, 11 unviable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment