all: rename module to pwdb

This commit is contained in:
ge
2026-02-20 18:28:03 +03:00
parent 38e266cded
commit 2d9ec0bf59
4 changed files with 18 additions and 18 deletions

17
pwdb_test.v Normal file
View File

@@ -0,0 +1,17 @@
// vtest build: !windows
import pwdb
fn test_get_by_uid() {
pw := pwdb.get_by_uid(0)!
assert pw.name == 'root'
}
fn test_get_by_name() {
pw := pwdb.get_by_name('root')!
assert pw.uid == 0
}
fn test_get_all() {
pws := pwdb.get_all()
assert pws.len > 0
}