• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

MinaProtocol / mina / 3409

26 Feb 2025 01:10PM UTC coverage: 32.353% (-28.4%) from 60.756%
3409

push

buildkite

web-flow
Merge pull request #16687 from MinaProtocol/dw/merge-compatible-into-develop-20250225

Merge compatible into develop [20250224]

23144 of 71535 relevant lines covered (32.35%)

16324.05 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

20.0
/src/lib/work_selector/random.ml
1
open Core_kernel
6✔
2

3
module Make (Lib : Intf.Lib_intf) = struct
4
  let work ~snark_pool ~fee ~logger (state : Lib.State.t) =
5
    Lib.State.remove_old_assignments state ~logger ;
×
6
    let unseen_jobs = Lib.State.all_unseen_works state in
×
7
    match Lib.get_expensive_work ~snark_pool ~fee unseen_jobs with
×
8
    | [] ->
×
9
        None
10
    | expensive_work ->
×
11
        let i = Random.int (List.length expensive_work) in
×
12
        let x = List.nth_exn expensive_work i in
×
13
        Lib.State.set state x ; Some x
×
14
end
15

16
let%test_module "test" =
17
  ( module struct
18
    module Test = Test.Make_test (Make)
19
  end )
6✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc