fixtures/lib.rs
1// Copyright (c) The cargo-guppy Contributors
2// SPDX-License-Identifier: MIT OR Apache-2.0
3
4//! Test fixtures for guppy.
5
6pub mod dep_helpers;
7pub mod details;
8pub mod json;
9
10use guppy::PackageId;
11
12/// Helper for creating `PackageId` instances in test code.
13pub fn package_id(s: impl Into<Box<str>>) -> PackageId {
14 PackageId::new(s)
15}