This commit is contained in:
ge
2026-04-28 23:18:57 +03:00
parent 7b17a4a33b
commit e54f013ef7
11 changed files with 142 additions and 50 deletions
+15
View File
@@ -0,0 +1,15 @@
import netio
fn test_interfaces() {
ifs := netio.interfaces()!
dump(ifs)
assert ifs.len > 0
}
fn test_name_to_index() {
assert netio.name_to_index('lo')! == 1
}
fn test_index_to_name() {
assert netio.index_to_name(1)! == 'lo'
}