Skip to content

Commit

Permalink
refactor integration tests for a more modern look
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Oct 8, 2024
1 parent 2b81e6c commit 3745212
Show file tree
Hide file tree
Showing 52 changed files with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions gix/tests/gix-init.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
pub mod util;

#![allow(clippy::result_large_err)]
mod with_overrides {
use std::borrow::Cow;

use gix::{Repository, ThreadSafeRepository};
use gix_object::bstr::BStr;
use gix_sec::Permission;
use gix_testtools::Env;
use serial_test::serial;

use crate::util::named_subrepo_opts;
pub fn named_subrepo_opts(
fixture: &str,
name: &str,
opts: gix::open::Options,
) -> std::result::Result<Repository, gix::open::Error> {
let repo_path = gix_testtools::scripted_fixture_read_only(fixture).unwrap().join(name);
Ok(ThreadSafeRepository::open_opts(repo_path, opts)?.to_thread_local())
}

#[test]
#[serial]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 3745212

Please sign in to comment.