❯ cargo test -- --show-output Compiling proc-macro2 v1.0.93 Compiling unicode-ident v1.0.15 Compiling thiserror v2.0.11 Compiling paste v1.0.15 Compiling quote v1.0.38 Compiling syn v2.0.96 Compiling thiserror-impl v2.0.11 Compiling lsblk v0.6.0 (/var/home/tulili/opt/lsblk-rs) Finished `test` profile [unoptimized + debuginfo] target(s) in 9.76s Running unittests src/lib.rs (target/debug/deps/lsblk-88e6a9cd07373485) running 2 tests test mountpoints::test_list_mountpoints ... ok test blockdevs::test_lsblk_smoke ... ok successes: ---- mountpoints::test_list_mountpoints stdout ---- Mount { device: "/dev/mapper/luks-db5ed772-d888-47de-a164-a34db0652609", mountpoint: "/sysroot", fstype: "btrfs", mountopts: "ro,seclabel,relatime,ssd,discard=async,space_cache=v2,subvolid=258,subvol=/root" } Mount { device: "composefs", mountpoint: "/", fstype: "overlay", mountopts: "ro,seclabel,relatime,lowerdir+=/run/ostree/.private/cfsroot-lower,datadir+=/sysroot/ostree/repo/objects,redirect_dir=on,metacopy=on" } Mount { device: "/dev/mapper/luks-db5ed772-d888-47de-a164-a34db0652609", mountpoint: "/etc", fstype: "btrfs", mountopts: "rw,seclabel,relatime,ssd,discard=async,space_cache=v2,subvolid=258,subvol=/root" } Mount { device: "/dev/mapper/luks-db5ed772-d888-47de-a164-a34db0652609", mountpoint: "/sysroot/ostree/deploy/default/var", fstype: "btrfs", mountopts: "rw,seclabel,relatime,ssd,discard=async,space_cache=v2,subvolid=258,subvol=/root" } Mount { device: "devtmpfs", mountpoint: "/dev", fstype: "devtmpfs", mountopts: "rw,seclabel,nosuid,size=4096k,nr_inodes=457184,mode=755,inode64" } Mount { device: "tmpfs", mountpoint: "/dev/shm", fstype: "tmpfs", mountopts: "rw,seclabel,nosuid,nodev,inode64" } Mount { device: "devpts", mountpoint: "/dev/pts", fstype: "devpts", mountopts: "rw,seclabel,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000" } Mount { device: "sysfs", mountpoint: "/sys", fstype: "sysfs", mountopts: "rw,seclabel,nosuid,nodev,noexec,relatime" } Mount { device: "securityfs", mountpoint: "/sys/kernel/security", fstype: "securityfs", mountopts: "rw,nosuid,nodev,noexec,relatime" } Mount { device: "cgroup2", mountpoint: "/sys/fs/cgroup", fstype: "cgroup2", mountopts: "rw,seclabel,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot" } Mount { device: "pstore", mountpoint: "/sys/fs/pstore", fstype: "pstore", mountopts: "rw,seclabel,nosuid,nodev,noexec,relatime" } Mount { device: "efivarfs", mountpoint: "/sys/firmware/efi/efivars", fstype: "efivarfs", mountopts: "rw,nosuid,nodev,noexec,relatime" } Mount { device: "bpf", mountpoint: "/sys/fs/bpf", fstype: "bpf", mountopts: "rw,nosuid,nodev,noexec,relatime,mode=700" } Mount { device: "configfs", mountpoint: "/sys/kernel/config", fstype: "configfs", mountopts: "rw,nosuid,nodev,noexec,relatime" } Mount { device: "proc", mountpoint: "/proc", fstype: "proc", mountopts: "rw,nosuid,nodev,noexec,relatime" } Mount { device: "tmpfs", mountpoint: "/run", fstype: "tmpfs", mountopts: "rw,seclabel,nosuid,nodev,size=762820k,nr_inodes=819200,mode=755,inode64" } Mount { device: "tmpfs", mountpoint: "/run/credentials/systemd-cryptsetup@luks\\134x2ddb5ed772\\134x2dd888\\134x2d47de\\134x2da164\\134x2da34db0652609.service", fstype: "tmpfs", mountopts: "ro,seclabel,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap" } Mount { device: "selinuxfs", mountpoint: "/sys/fs/selinux", fstype: "selinuxfs", mountopts: "rw,nosuid,noexec,relatime" } Mount { device: "systemd-1", mountpoint: "/proc/sys/fs/binfmt_misc", fstype: "autofs", mountopts: "rw,relatime,fd=39,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=9041" } Mount { device: "debugfs", mountpoint: "/sys/kernel/debug", fstype: "debugfs", mountopts: "rw,seclabel,nosuid,nodev,noexec,relatime" } Mount { device: "hugetlbfs", mountpoint: "/dev/hugepages", fstype: "hugetlbfs", mountopts: "rw,seclabel,nosuid,nodev,relatime,pagesize=2M" } Mount { device: "tracefs", mountpoint: "/sys/kernel/tracing", fstype: "tracefs", mountopts: "rw,seclabel,nosuid,nodev,noexec,relatime" } Mount { device: "mqueue", mountpoint: "/dev/mqueue", fstype: "mqueue", mountopts: "rw,seclabel,nosuid,nodev,noexec,relatime" } Mount { device: "tmpfs", mountpoint: "/run/credentials/systemd-journald.service", fstype: "tmpfs", mountopts: "ro,seclabel,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap" } Mount { device: "fusectl", mountpoint: "/sys/fs/fuse/connections", fstype: "fusectl", mountopts: "rw,nosuid,nodev,noexec,relatime" } Mount { device: "/dev/mapper/luks-db5ed772-d888-47de-a164-a34db0652609", mountpoint: "/var", fstype: "btrfs", mountopts: "rw,seclabel,relatime,ssd,discard=async,space_cache=v2,subvolid=256,subvol=/var" } Mount { device: "/dev/mapper/luks-db5ed772-d888-47de-a164-a34db0652609", mountpoint: "/var/home", fstype: "btrfs", mountopts: "rw,seclabel,relatime,ssd,discard=async,space_cache=v2,subvolid=257,subvol=/home" } Mount { device: "tmpfs", mountpoint: "/tmp", fstype: "tmpfs", mountopts: "rw,seclabel,nosuid,nodev,nr_inodes=1048576,inode64" } Mount { device: "/dev/mmcblk1p2", mountpoint: "/boot", fstype: "ext4", mountopts: "rw,seclabel,relatime" } Mount { device: "/dev/mmcblk1p1", mountpoint: "/boot/efi", fstype: "vfat", mountopts: "rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=winnt,errors=remount-ro" } Mount { device: "binfmt_misc", mountpoint: "/proc/sys/fs/binfmt_misc", fstype: "binfmt_misc", mountopts: "rw,nosuid,nodev,noexec,relatime" } Mount { device: "tmpfs", mountpoint: "/run/credentials/systemd-resolved.service", fstype: "tmpfs", mountopts: "ro,seclabel,nosuid,nodev,noexec,relatime,nosymfollow,size=1024k,nr_inodes=1024,mode=700,inode64,noswap" } Mount { device: "sunrpc", mountpoint: "/var/lib/nfs/rpc_pipefs", fstype: "rpc_pipefs", mountopts: "rw,relatime" } Mount { device: "tmpfs", mountpoint: "/run/user/1001", fstype: "tmpfs", mountopts: "rw,seclabel,nosuid,nodev,relatime,size=381408k,nr_inodes=95352,mode=700,uid=1001,gid=1001,inode64" } Mount { device: "gvfsd-fuse", mountpoint: "/run/user/1001/gvfs", fstype: "fuse.gvfsd-fuse", mountopts: "rw,nosuid,nodev,relatime,user_id=1001,group_id=1001" } Mount { device: "portal", mountpoint: "/run/user/1001/doc", fstype: "fuse.portal", mountopts: "rw,nosuid,nodev,relatime,user_id=1001,group_id=1001" } Mount { device: "tmpfs", mountpoint: "/run/user/0", fstype: "tmpfs", mountopts: "rw,seclabel,nosuid,nodev,relatime,size=381408k,nr_inodes=95352,mode=700,inode64" } Mount { device: "tmpfs", mountpoint: "/run/user/1000", fstype: "tmpfs", mountopts: "rw,seclabel,nosuid,nodev,relatime,size=381408k,nr_inodes=95352,mode=700,uid=1000,gid=1000,inode64" } ---- blockdevs::test_lsblk_smoke stdout ---- 1228800 "/sys/dev/block/179:1/" mmcblk1 238497792 "/sys/dev/block/179:3/" mmcblk1 2097152 "/sys/dev/block/179:2/" mmcblk1 successes: blockdevs::test_lsblk_smoke mountpoints::test_list_mountpoints test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s Doc-tests lsblk running 2 tests test src/mountpoints.rs - mountpoints::Mount::iter_mountopts (line 66) ... ok test src/mountpoints.rs - mountpoints::Mount::list (line 35) ... ok successes: successes: src/mountpoints.rs - mountpoints::Mount::iter_mountopts (line 66) src/mountpoints.rs - mountpoints::Mount::list (line 35) test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.38s