You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/lwt_to_direct_style/to_direct_style.t/run.t
+42-32Lines changed: 42 additions & 32 deletions
Original file line number
Diff line number
Diff line change
@@ -228,45 +228,47 @@ Make a writable directory tree:
228
228
Lwt_mutex.lock (line 136 column 9)
229
229
Lwt_mutex.unlock (line 137 column 9)
230
230
Lwt_mutex.with_lock (line 138 column 9)
231
-
lib/test_lwt_unix.ml: (38 occurrences)
231
+
lib/test_lwt_unix.ml: (40 occurrences)
232
232
Lwt_io (line 7 column 8)
233
-
Lwt.return (line 11 column 3)
233
+
Lwt.return (line 12 column 3)
234
234
Lwt.let* (line 10 column 3)
235
-
Lwt.let* (line 31 column 3)
236
-
Lwt.let* (line 35 column 3)
235
+
Lwt.let* (line 11 column 3)
236
+
Lwt.let* (line 32 column 3)
237
+
Lwt.let* (line 36 column 3)
237
238
Lwt.Syntax (line 1 column 6)
238
-
Lwt_io.Input (line 22 column 32)
239
-
Lwt_io.Output (line 23 column 32)
239
+
Lwt_io.Input (line 23 column 32)
240
+
Lwt_io.Output (line 24 column 32)
240
241
Lwt_io.input (line 7 column 28)
241
-
Lwt_io.input (line 31 column 36)
242
-
Lwt_io.output (line 21 column 32)
243
-
Lwt_io.output (line 35 column 36)
244
-
Lwt_io.output_channel (line 26 column 9)
245
-
Lwt_io.close (line 32 column 3)
242
+
Lwt_io.input (line 32 column 36)
243
+
Lwt_io.output (line 22 column 32)
244
+
Lwt_io.output (line 36 column 36)
245
+
Lwt_io.output_channel (line 27 column 9)
246
+
Lwt_io.close (line 33 column 3)
246
247
Lwt_io.of_fd (line 7 column 16)
247
-
Lwt_io.of_fd (line 21 column 13)
248
248
Lwt_io.of_fd (line 22 column 13)
249
249
Lwt_io.of_fd (line 23 column 13)
250
-
Lwt_io.read_line (line 28 column 15)
251
-
Lwt_io.read (line 41 column 15)
250
+
Lwt_io.of_fd (line 24 column 13)
251
+
Lwt_io.read_line (line 29 column 15)
252
252
Lwt_io.read (line 42 column 15)
253
253
Lwt_io.read (line 43 column 15)
254
+
Lwt_io.read (line 44 column 15)
254
255
Lwt_io.read_into (line 10 column 19)
255
-
Lwt_io.write (line 24 column 19)
256
-
Lwt_io.length (line 36 column 3)
257
-
Lwt_io.stdout (line 26 column 33)
258
-
Lwt_io.open_file (line 31 column 13)
259
-
Lwt_io.open_file (line 35 column 13)
260
-
Lwt_unix.Timeout (line 13 column 9)
256
+
Lwt_io.read_into_exactly (line 11 column 13)
257
+
Lwt_io.write (line 25 column 19)
258
+
Lwt_io.length (line 37 column 3)
259
+
Lwt_io.stdout (line 27 column 33)
260
+
Lwt_io.open_file (line 32 column 13)
261
+
Lwt_io.open_file (line 36 column 13)
262
+
Lwt_unix.Timeout (line 14 column 9)
261
263
Lwt_unix.of_unix_file_descr (line 6 column 8)
262
-
Lwt_unix.stat (line 38 column 16)
263
-
Lwt_unix.lstat (line 39 column 16)
264
-
Lwt_unix.sockaddr (line 14 column 9)
265
-
Lwt_unix.ADDR_UNIX (line 14 column 29)
266
-
Lwt_unix.ADDR_UNIX (line 16 column 6)
267
-
Lwt_unix.ADDR_INET (line 16 column 29)
268
-
Lwt_unix.ADDR_INET (line 17 column 3)
269
-
Lwt_unix.getaddrinfo (line 19 column 9)
264
+
Lwt_unix.stat (line 39 column 16)
265
+
Lwt_unix.lstat (line 40 column 16)
266
+
Lwt_unix.sockaddr (line 15 column 9)
267
+
Lwt_unix.ADDR_UNIX (line 15 column 29)
268
+
Lwt_unix.ADDR_UNIX (line 17 column 6)
269
+
Lwt_unix.ADDR_INET (line 17 column 29)
270
+
Lwt_unix.ADDR_INET (line 18 column 3)
271
+
Lwt_unix.getaddrinfo (line 20 column 9)
270
272
lib/test.mli: (17 occurrences)
271
273
Lwt (line 12 column 26)
272
274
Lwt.t (line 1 column 35)
@@ -298,9 +300,9 @@ Make a writable directory tree:
298
300
Lwt.let* (line 163 column 21)
299
301
Lwt.Fail (line 179 column 9)
300
302
Warning:lib/test_lwt_unix.ml:3 occurrences have not been rewritten.
301
-
Lwt_io.stdout (line 26 column 33)
302
-
Lwt_io.read (line 42 column 15)
303
+
Lwt_io.stdout (line 27 column 33)
303
304
Lwt_io.read (line 43 column 15)
305
+
Lwt_io.read (line 44 column 15)
304
306
Warning:lib/test.mli:2 occurrences have not been rewritten.
305
307
Lwt_mutex.t (line 2 column 10)
306
308
Lwt_mutex.t (line 3 column 10)
@@ -695,8 +697,16 @@ Make a writable directory tree:
695
697
Eio.Flow.single_read
696
698
(* TODO: lwt-to-direct-style: [buf] should be a [Cstruct.t]. *)
697
699
(* TODO: lwt-to-direct-style: [Eio.Flow.single_read] operates on a [Flow.source] but [inp] is likely of type [Eio.Buf_read.t]. Rewrite this code to use [Buf_read] (which contains an internal buffer) or change the call to [Eio.Buf_read.of_flow] used to create the buffer. *)
(* TODO: lwt-to-direct-style: Dropped expression (buffer offset): [0]. This will behave as if it was [0]. *)
701
+
(* TODO: lwt-to-direct-style: Dropped expression (buffer length): [1024]. This will behave as if it was [Cstruct.length buffer]. *)
702
+
inp buf
703
+
in
704
+
let () =
705
+
Eio.Flow.read_exact
706
+
(* TODO: lwt-to-direct-style: [buf] should be a [Cstruct.t]. *)
707
+
(* TODO: lwt-to-direct-style: [Eio.Flow.single_read] operates on a [Flow.source] but [inp] is likely of type [Eio.Buf_read.t]. Rewrite this code to use [Buf_read] (which contains an internal buffer) or change the call to [Eio.Buf_read.of_flow] used to create the buffer. *)
708
+
(* TODO: lwt-to-direct-style: Dropped expression (buffer offset): [0]. This will behave as if it was [0]. *)
709
+
(* TODO: lwt-to-direct-style: Dropped expression (buffer length): [1024]. This will behave as if it was [Cstruct.length buffer]. *)
0 commit comments