This commit is contained in:
lollipopkit
2023-08-30 13:44:19 +08:00
parent 1cdcff120d
commit 685faa0627
3 changed files with 16 additions and 2 deletions

13
test/proc_test.dart Normal file
View File

@@ -0,0 +1,13 @@
import 'package:flutter_test/flutter_test.dart';
import 'package:toolbox/data/model/server/proc.dart';
void main() {
test('parse process', () {
const raw = '''
PID USER VSZ STAT COMMAND
1 root 1276 S /sbin/procd
''';
final psResult = PsResult.parse(raw);
expect(psResult.procs.length, 1);
});
}