summaryrefslogtreecommitdiffstats
path: root/vendor/os_info/tests
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/os_info/tests')
-rw-r--r--vendor/os_info/tests/basic.rs4
-rw-r--r--vendor/os_info/tests/md_doc.rs3
2 files changed, 7 insertions, 0 deletions
diff --git a/vendor/os_info/tests/basic.rs b/vendor/os_info/tests/basic.rs
new file mode 100644
index 000000000..c48565fce
--- /dev/null
+++ b/vendor/os_info/tests/basic.rs
@@ -0,0 +1,4 @@
+#[test]
+fn get() {
+ let _ = os_info::get();
+}
diff --git a/vendor/os_info/tests/md_doc.rs b/vendor/os_info/tests/md_doc.rs
new file mode 100644
index 000000000..73473247b
--- /dev/null
+++ b/vendor/os_info/tests/md_doc.rs
@@ -0,0 +1,3 @@
+// spell-checker:ignore doctest
+
+doc_comment::doctest!("../README.md");