|
1 | 1 | diff -ru src/common/bisect_common.ml _self/meta_bisect_ppx/src/common/bisect_common.ml
|
2 | 2 | --- src/common/bisect_common.ml
|
3 | 3 | +++ _self/meta_bisect_ppx/src/common/bisect_common.ml
|
4 |
| -@@ -95,5 +95,5 @@ |
5 |
| - Random.State.make_self_init () [@coverage off] |
6 |
| - |
| 4 | +@@ -110,4 +110,4 @@ |
7 | 5 | let random_filename ~prefix =
|
8 |
| -- Printf.sprintf "%s%09d.coverage" |
9 |
| -+ Printf.sprintf "%s%09d.meta" |
10 |
| - prefix (abs (Random.State.int prng 1000000000)) |
| 6 | + prefix ^ |
| 7 | + (string_of_int (abs (Random.State.int prng 1000000000))) ^ |
| 8 | +- ".coverage" |
| 9 | ++ ".meta" |
11 | 10 | diff -ru src/common/dune _self/meta_bisect_ppx/src/common/dune
|
12 | 11 | --- src/common/dune
|
13 | 12 | +++ _self/meta_bisect_ppx/src/common/dune
|
@@ -42,15 +41,15 @@ diff -ru src/ppx/dune _self/meta_bisect_ppx/src/ppx/dune
|
42 | 41 | diff -ru src/ppx/instrument.ml _self/meta_bisect_ppx/src/ppx/instrument.ml
|
43 | 42 | --- src/ppx/instrument.ml
|
44 | 43 | +++ _self/meta_bisect_ppx/src/ppx/instrument.ml
|
45 |
| -@@ -986,7 +986,7 @@ |
| 44 | +@@ -996,7 +996,7 @@ |
46 | 45 | let ___bisect_visit___ =
|
47 | 46 | let points = [%e points_data] in
|
48 | 47 | let `Visit visit =
|
49 | 48 | - Bisect.Runtime.register_file
|
50 | 49 | + Meta_bisect.Runtime.register_file
|
51 |
| - ~bisect_file:[%e bisect_file] ~bisect_silent:[%e bisect_silent] |
52 |
| - ~filename:[%e filename] ~points |
53 |
| - in |
| 50 | + ~bisect_file:[%e bisect_file] |
| 51 | + ~bisect_silent:[%e bisect_silent] |
| 52 | + ~filename:[%e filename] |
54 | 53 | diff -ru src/report/cobertura.ml _self/meta_bisect_ppx/src/report/cobertura.ml
|
55 | 54 | --- src/report/cobertura.ml
|
56 | 55 | +++ _self/meta_bisect_ppx/src/report/cobertura.ml
|
@@ -106,6 +105,18 @@ diff -ru src/report/input.mli _self/meta_bisect_ppx/src/report/input.mli
|
106 | 105 | (* This file is part of Bisect_ppx, released under the MIT license. See
|
107 | 106 | LICENSE.md for details, or visit
|
108 | 107 | https://github.com/aantron/bisect_ppx/blob/master/LICENSE.md. *)
|
| 108 | +diff -ru src/report/merge.ml _self/meta_bisect_ppx/src/report/merge.ml |
| 109 | +--- src/report/merge.ml |
| 110 | ++++ _self/meta_bisect_ppx/src/report/merge.ml |
| 111 | +@@ -7,7 +7,7 @@ |
| 112 | + let coverage = |
| 113 | + Input.load_coverage |
| 114 | + ~coverage_files ~coverage_paths ~expect:[] ~do_not_expect:[] |
| 115 | +- |> Bisect_common.write_coverage |
| 116 | ++ |> Meta_bisect_common.write_coverage |
| 117 | + in |
| 118 | + let () = Util.mkdirs (Filename.dirname to_file) in |
| 119 | + let oc = open_out to_file in |
109 | 120 | diff -ru src/report/text.ml _self/meta_bisect_ppx/src/report/text.ml
|
110 | 121 | --- src/report/text.ml
|
111 | 122 | +++ _self/meta_bisect_ppx/src/report/text.ml
|
@@ -138,7 +149,7 @@ diff -ru src/runtime/native/runtime.ml _self/meta_bisect_ppx/src/runtime/native/
|
138 | 149 |
|
139 | 150 | let default_bisect_file = ref "bisect"
|
140 | 151 |
|
141 |
| -@@ -76,8 +76,17 @@ |
| 152 | +@@ -88,8 +88,17 @@ |
142 | 153 | in
|
143 | 154 | create_file 100
|
144 | 155 |
|
|
0 commit comments