findutils 0.9.0

Rust implementation of GNU findutils
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright 2017 Google Inc.
//
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.

// As this module is included by all the integration tests, any function used
// in one test but not another can cause a dead code warning.
#[allow(dead_code)]
pub mod test_helpers;

// Set UUTESTS_BINARY_PATH before any tests run. The value is only used by
// TestScenario::new() to satisfy its internal setup; tests that need a
// specific binary pass it explicitly via TestScenario::cmd(BINARY_PATH).
#[ctor::ctor(unsafe)]
fn init() {
    std::env::set_var("UUTESTS_BINARY_PATH", env!("CARGO_BIN_EXE_find"));
}