more detailed test output

This commit is contained in:
shibedrill 2024-02-13 13:52:02 -05:00
parent a437c5f34f
commit 73c5245100
4 changed files with 6 additions and 5 deletions

2
Cargo.lock generated
View File

@ -490,7 +490,7 @@ checksum = "6f61fba1741ea2b3d6a1e3178721804bb716a68a6aeba1149b5d52e3d464ea66"
[[package]]
name = "oxidefetch"
version = "2.0.0-beta.0"
version = "2.0.0-beta.1"
dependencies = [
"byte-unit",
"chrono",

View File

@ -1,7 +1,7 @@
[package]
name = "oxidefetch"
description = "A fast, cross platform Fetch program for your terminal"
version = "2.0.0-beta.0"
version = "2.0.0-beta.1"
edition = "2021"
authors = [ "NamedNeon", "shibedrill" ]
license = "MIT"

View File

@ -1,4 +1,4 @@
# oxidefetch 2.0.0-beta.0
# oxidefetch 2.0.0-beta.1
Fully cross platform Neofetch clone written in Rust. Up to 25 times faster than Neofetch!
![alt text](image.png "Example output of OxideFetch on a WSL2 Arch Linux host")
@ -101,6 +101,7 @@ No weird quirks to report at this time.
**1.4.7:** Removed several `unwrap()` calls. Changed debug output to serialize to RON.
**1.4.8:** Applied Clippy suggestions. Added stuff to README.
**2.0.0-beta.0:** Switch from deprecated, platform-dependent GPU backends to [libpci-rs](https://github.com/namedneon/libpci-rs)
**2.0.0-beta.1:** Updated test functionality to include package version in the log file.
### License
This software is covered by the MIT license. See license.txt for details.

View File

@ -254,8 +254,8 @@ mod test {
pub fn log_gathered_data() {
let sys_info = Information::new();
//let data_string = format!("{:#?}", sys_info);
let data_string = ron::ser::to_string_pretty(&sys_info, ron::ser::PrettyConfig::default())
.expect("Failed to serialize data structure. Aborting...");
let data_string = format!("Version: {}\nBegin structure dump:\n{}", env!("CARGO_PKG_VERSION"), ron::ser::to_string_pretty(&sys_info, ron::ser::PrettyConfig::default())
.expect("Failed to serialize data structure. Aborting..."));
let result = fs::write("./test_output.ron", data_string);
if result.is_ok() {