diff options
Diffstat (limited to 'extra/git2/tests/add_extensions.rs')
-rw-r--r-- | extra/git2/tests/add_extensions.rs | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/extra/git2/tests/add_extensions.rs b/extra/git2/tests/add_extensions.rs deleted file mode 100644 index 57c0eb976..000000000 --- a/extra/git2/tests/add_extensions.rs +++ /dev/null @@ -1,21 +0,0 @@ -//! Test for `set_extensions`, which writes a global state maintained by libgit2 - -use git2::opts::{get_extensions, set_extensions}; -use git2::Error; - -#[test] -fn test_add_extensions() -> Result<(), Error> { - unsafe { - set_extensions(&["custom"])?; - } - - let extensions = unsafe { get_extensions() }?; - - assert_eq!(extensions.len(), 3); - assert_eq!(extensions.get(0), Some("custom")); - // The objectformat extension was added in 1.6 - assert_eq!(extensions.get(1), Some("noop")); - assert_eq!(extensions.get(2), Some("objectformat")); - - Ok(()) -} |