fallow-core 3.22.0

Internal detector backend for fallow-engine and fallow-api
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Shared test fixtures for the analyze detectors.

use fallow_types::discover::FileId;
use fallow_types::extract::ModuleInfo;

/// A fully-zeroed [`ModuleInfo`] with `file_id == FileId(1)` for detector unit
/// tests. Construct with struct-update syntax: `ModuleInfo { angular_inputs:
/// vec![..], ..empty_module() }`.
#[must_use]
pub fn empty_module() -> ModuleInfo {
    ModuleInfo::empty(FileId(1))
}