Refresh CLI test contracts for backup and retry controls

This commit is contained in:
mikecarper committed 2026-09-26 22:50:54 -07:00
1 parent edc1c04cd3
commit 8edef5c4a0
2 files changed
+8

No files matched your search

+1
View File
@@ -191,6 +191,7 @@ class CLISettingsContractTest(unittest.TestCase):
'contact.cache', 'contact.cache.timing', # Contact-storage diagnostics
'display.wifi', # Connection/display status
'flash.health', # Read-only flash health diagnostics
'key.backup.transport', # Identity-backup transport capability
'mqtt', 'mqtt.running', # MQTT connection status
'password', 'prv.key', # Local secret/identity reads
'pwrmgt.bootreason', 'role', # Boot/build facts
+7
View File
@@ -38,6 +38,12 @@ struct RadioProfileCLI {
void appendSavedPreamble(char*, size_t, uint8_t, float) {}
void appendPrimaryChirpWarning(char*, size_t, uint8_t, float, uint16_t) const {}
};
namespace companion {
// Retry settings have their own test harness; this one exercises local/remote
// dispatch around that branch of the production command handler.
template <typename Prefs, typename Save, typename Cancel>
bool handleRetryCommand(Prefs&, const char*, char*, size_t, Save, Cancel) { return false; }
}
struct Packet {};
void resetLazyPersistenceAfterSuccess(unsigned& when, uint8_t& failures) { when=0; failures=0; }
struct Utils {
@@ -125,6 +131,7 @@ struct MyMesh {
return false;
}
void stopContactsIterator(){}
void cancelAllFloodRetries(){}
void resetContacts(){++resets;}
bool savePrefs(){++saves;return save_ok;}
int getTotalAirTime(){return 0;}