d08bfee718
## Summary These were moved as part of a broader refactor to create a single integration test module. That "single integration test module" did indeed have a big impact on compile times, which is great! But we aren't seeing any benefit from moving these tests into their own files (despite the claim in [this blog post](https://matklad.github.io/2021/02/27/delete-cargo-integration-tests.html), I see the same compilation pattern regardless of where the tests are located). Plus, we don't have many of these, and same-file tests is such a strong Rust convention.
17 lines
355 B
Rust
17 lines
355 B
Rust
/// Return the application version.
|
|
///
|
|
/// This should be in sync with uv's version based on the Crate version.
|
|
pub fn version() -> &'static str {
|
|
env!("CARGO_PKG_VERSION")
|
|
}
|
|
|
|
#[cfg(test)]
|
|
mod tests {
|
|
use super::*;
|
|
|
|
#[test]
|
|
fn test_get_version() {
|
|
assert_eq!(version().to_string(), env!("CARGO_PKG_VERSION").to_string());
|
|
}
|
|
}
|