Crate gix_testtools

source ·
Expand description

Utilities for testing gitoxide crates, many of which might be useful for testing programs that use git in general.

§Feature Flags

  • xz — Use instead of plain tar files, compress these to produce tar.xz files instead. This is useful if archives are uploaded into git-lfs, which doesn’t have built-in compression and metering counts towards uncompressed bytes transferred.

Re-exports§

Structs§

  • A utility to set the current working dir to the given value, on drop.
  • A utility to set environment variables, while unsetting them (or resetting them to their previous value) on drop.
  • A wrapper for a running git-daemon process which is killed automatically on drop.

Enums§

Statics§

  • The major, minor and patch level of the git version on the system.

Functions§

Type Aliases§

  • A result type to allow using the try operator ? in unit tests.