Skip to content

Commit

Permalink
Fix file_release inadequate testing
Browse files Browse the repository at this point in the history
* Refactor tests to have more operating system context

* Add tests for more edge cases

* Order tests alphabetically
  • Loading branch information
exincore committed Jul 18, 2022
1 parent 517e13e commit e98db60
Show file tree
Hide file tree
Showing 27 changed files with 173 additions and 119 deletions.
286 changes: 167 additions & 119 deletions os_info/src/linux/file_release.rs

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions os_info/src/linux/tests/CentOS_Unknown/etc/centos-release
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Centos Linux
File renamed without changes.
1 change: 1 addition & 0 deletions os_info/src/linux/tests/Fedora_Unknown/etc/fedora-release
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fedora (Foo Bar)
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CBL-Mariner
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions os_info/src/linux/tests/OracleLinux/etc/redhat-release
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Redhat Linux release XX
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ID="Lorem ipsum dolor sit amet"
VERSION_ID="It's all greek to me"

0 comments on commit e98db60

Please sign in to comment.