@@ -883,3 +883,40 @@ test "Queen senses — countFarmIdleServices with missing file" {
883883 const count = countFarmIdleServices ();
884884 try std .testing .expect (count >= 0 );
885885}
886+
887+ // ═══════════════════════════════════════════════════════════════════════════════
888+ // REAL function tests
889+ // ═══════════════════════════════════════════════════════════════════════════════
890+
891+ test "Queen senses — readEvolutionInfo returns struct" {
892+ const info = readEvolutionInfo ();
893+ // EvolutionInfo has fields like run_count, best_ppl, etc.
894+ _ = info .run_count ;
895+ _ = info .best_ppl ;
896+ }
897+
898+ test "Queen senses — readEvolutionInfo has valid numbers" {
899+ const info = readEvolutionInfo ();
900+ try std .testing .expect (info .run_count >= 0 );
901+ try std .testing .expect (info .best_ppl >= 0 );
902+ }
903+
904+ test "Queen senses — SenseResult init" {
905+ const result = SenseResult {};
906+ try std .testing .expectEqual (@as (f32 , 0 ), result .ouroboros_score );
907+ try std .testing .expectEqual (@as (u32 , 0 ), result .farm_active );
908+ }
909+
910+ test "Queen senses — EvolutionInfo fields" {
911+ const info = readEvolutionInfo ();
912+ _ = info .best_name ;
913+ _ = info .total_configs ;
914+ _ = info .total_killed ;
915+ }
916+
917+ test "Queen senses — fmtSensesTelegram produces output" {
918+ var buf : [1024 ]u8 = undefined ;
919+ const result = SenseResult {};
920+ const msg = fmtSensesTelegram (& buf , result );
921+ try std .testing .expect (msg .len > 0 );
922+ }
0 commit comments