>_PORT COVERAGE
C-to-Rust coverage of the htop 3.5.1 port, derived from the C source at /Users/wizard/forkedRepos/htop and the Rust port under src/ported/ at generation time. "Ported" = a pub fn whose name matches a function defined in the htop C source.
845
Fns ported
65
Fns stubbed
1101
C fns defined
76.75%
Coverage
119
Files started
~PER-FILE
| C file | ported | stubbed | defined | coverage |
|---|---|---|---|---|
Action.c | 54 | 3 | 57 | 95% |
Affinity.c | 7 | 0 | 7 | 100% |
AffinityPanel.c | 4 | 9 | 13 | 31% |
AvailableColumnsPanel.c | 8 | 1 | 9 | 89% |
AvailableMetersPanel.c | 8 | 0 | 8 | 100% |
BacktraceScreen.c | 17 | 0 | 17 | 100% |
BatteryMeter.c | 1 | 0 | 1 | 100% |
CPUMeter.c | 18 | 0 | 18 | 100% |
CRT.c | 16 | 1 | 19 | 84% |
CategoriesPanel.c | 7 | 2 | 9 | 78% |
ColorsPanel.c | 3 | 0 | 3 | 100% |
ColumnsPanel.c | 7 | 0 | 7 | 100% |
CommandLine.c | 2 | 0 | 6 | 33% |
CommandScreen.c | 4 | 0 | 4 | 100% |
DateTimeMeter.c | 1 | 0 | 1 | 100% |
DiskIOMeter.c | 11 | 0 | 11 | 100% |
DisplayOptionsPanel.c | 3 | 0 | 3 | 100% |
DynamicColumn.c | 8 | 0 | 8 | 100% |
DynamicMeter.c | 3 | 7 | 10 | 30% |
DynamicScreen.c | 4 | 2 | 6 | 67% |
EnvScreen.c | 4 | 0 | 4 | 100% |
FileDescriptorMeter.c | 2 | 0 | 2 | 100% |
FunctionBar.c | 9 | 0 | 9 | 100% |
GPUMeter.c | 6 | 0 | 6 | 100% |
Hashtable.c | 13 | 0 | 13 | 100% |
Header.c | 12 | 0 | 12 | 100% |
HeaderOptionsPanel.c | 3 | 0 | 3 | 100% |
History.c | 7 | 0 | 7 | 100% |
HostnameMeter.c | 1 | 0 | 1 | 100% |
IncSet.c | 19 | 0 | 19 | 100% |
InfoScreen.c | 6 | 0 | 6 | 100% |
LineEditor.c | 15 | 0 | 15 | 100% |
ListItem.c | 6 | 0 | 6 | 100% |
LoadAverageMeter.c | 4 | 0 | 4 | 100% |
Machine.c | 6 | 0 | 6 | 100% |
MainPanel.c | 12 | 0 | 12 | 100% |
MemoryMeter.c | 2 | 0 | 2 | 100% |
MemorySwapMeter.c | 5 | 0 | 5 | 100% |
Meter.c | 15 | 0 | 16 | 94% |
MetersPanel.c | 6 | 0 | 6 | 100% |
NetworkIOMeter.c | 2 | 0 | 2 | 100% |
Object.c | 1 | 0 | 1 | 100% |
OpenFilesScreen.c | 8 | 0 | 8 | 100% |
OptionItem.c | 22 | 0 | 22 | 100% |
Panel.c | 27 | 0 | 27 | 100% |
Process.c | 32 | 0 | 32 | 100% |
ProcessLocksScreen.c | 4 | 0 | 5 | 80% |
ProcessTable.c | 6 | 0 | 6 | 100% |
RichString.c | 18 | 0 | 18 | 100% |
Row.c | 24 | 0 | 24 | 100% |
Scheduling.c | 7 | 0 | 7 | 100% |
ScreenManager.c | 13 | 0 | 13 | 100% |
ScreenTabsPanel.c | 16 | 0 | 16 | 100% |
ScreensPanel.c | 13 | 0 | 13 | 100% |
Settings.c | 29 | 0 | 29 | 100% |
SignalsPanel.c | 1 | 0 | 1 | 100% |
SwapMeter.c | 2 | 0 | 2 | 100% |
SysArchMeter.c | 1 | 0 | 1 | 100% |
Table.c | 17 | 0 | 17 | 100% |
TasksMeter.c | 2 | 0 | 2 | 100% |
TraceScreen.c | 6 | 0 | 6 | 100% |
UptimeMeter.c | 2 | 0 | 2 | 100% |
UsersTable.c | 4 | 0 | 4 | 100% |
Vector.c | 24 | 1 | 27 | 89% |
XUtils.c | 13 | 0 | 27 | 48% |
darwin/DarwinMachine.c | 10 | 0 | 10 | 100% |
darwin/DarwinProcess.c | 11 | 0 | 11 | 100% |
darwin/DarwinProcessTable.c | 4 | 0 | 4 | 100% |
darwin/Platform.c | 22 | 3 | 25 | 88% |
darwin/PlatformHelpers.c | 5 | 0 | 5 | 100% |
dragonflybsd/DragonFlyBSDMachine.c | 6 | 4 | 10 | 60% |
dragonflybsd/DragonFlyBSDProcess.c | 4 | 0 | 4 | 100% |
dragonflybsd/DragonFlyBSDProcessTable.c | 3 | 3 | 6 | 50% |
dragonflybsd/Platform.c | 15 | 0 | 15 | 100% |
freebsd/FreeBSDMachine.c | 8 | 0 | 8 | 100% |
freebsd/FreeBSDProcess.c | 4 | 0 | 4 | 100% |
freebsd/FreeBSDProcessTable.c | 7 | 0 | 7 | 100% |
freebsd/Platform.c | 15 | 2 | 17 | 88% |
generic/gettime.c | 2 | 0 | 2 | 100% |
generic/hostname.c | 1 | 0 | 1 | 100% |
generic/uname.c | 2 | 0 | 3 | 67% |
htop.c | 0 | 1 | 1 | 0% |
linux/CGroupUtils.c | 11 | 0 | 11 | 100% |
linux/Compat.c | 8 | 0 | 8 | 100% |
linux/GPU.c | 3 | 0 | 3 | 100% |
linux/HugePageMeter.c | 2 | 0 | 2 | 100% |
linux/IOPriorityPanel.c | 2 | 0 | 2 | 100% |
linux/LibNl.c | 0 | 6 | 6 | 0% |
linux/LibSensors.c | 1 | 6 | 7 | 14% |
linux/LinuxMachine.c | 18 | 0 | 20 | 90% |
linux/LinuxProcess.c | 12 | 0 | 12 | 100% |
linux/LinuxProcessTable.c | 29 | 7 | 36 | 81% |
linux/OpenRCMeter.c | 5 | 0 | 7 | 71% |
linux/Platform.c | 23 | 8 | 31 | 74% |
linux/PressureStallMeter.c | 2 | 0 | 2 | 100% |
linux/SELinuxMeter.c | 3 | 0 | 4 | 75% |
linux/SystemdMeter.c | 6 | 3 | 9 | 67% |
linux/ZramMeter.c | 2 | 0 | 2 | 100% |
netbsd/NetBSDMachine.c | 12 | 0 | 12 | 100% |
netbsd/NetBSDProcess.c | 4 | 0 | 4 | 100% |
netbsd/NetBSDProcessTable.c | 8 | 0 | 8 | 100% |
netbsd/Platform.c | 15 | 0 | 15 | 100% |
openbsd/OpenBSDMachine.c | 11 | 0 | 11 | 100% |
openbsd/OpenBSDProcess.c | 4 | 0 | 4 | 100% |
openbsd/OpenBSDProcessTable.c | 7 | 0 | 7 | 100% |
openbsd/Platform.c | 16 | 0 | 16 | 100% |
pcp-htop.c | 0 | 1 | 1 | 0% |
pcp/PCPMachine.c | 6 | 0 | 20 | 30% |
pcp/PCPProcess.c | 1 | 0 | 6 | 17% |
pcp/PCPProcessTable.c | 3 | 0 | 28 | 11% |
pcp/Platform.c | 26 | 3 | 51 | 51% |
solaris/Platform.c | 15 | 2 | 18 | 83% |
solaris/SolarisMachine.c | 10 | 0 | 10 | 100% |
solaris/SolarisProcess.c | 4 | 0 | 4 | 100% |
solaris/SolarisProcessTable.c | 7 | 0 | 8 | 88% |
unsupported/Platform.c | 17 | 0 | 17 | 100% |
unsupported/UnsupportedMachine.c | 6 | 0 | 6 | 100% |
unsupported/UnsupportedProcess.c | 4 | 0 | 4 | 100% |
unsupported/UnsupportedProcessTable.c | 3 | 0 | 3 | 100% |