Skip to content

Commit decd1d6

Browse files
committed
Padded response body print statement
1 parent f99a843 commit decd1d6

File tree

2 files changed

+28
-28
lines changed

2 files changed

+28
-28
lines changed

lib/codegen/rust/curl_rust.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ fn main() {
7474
7575
let response_body = String::from_utf8_lossy(&data);
7676
77-
println!("Response body:{}", response_body);
77+
println!("Response body: {}", response_body);
7878
println!("Response code: {}", easy.response_code().unwrap());
7979
}""";
8080

test/codegen/rust_curl_codegen_test.dart

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ fn main() {
2828
2929
let response_body = String::from_utf8_lossy(&data);
3030
31-
println!("Response body:{}", response_body);
31+
println!("Response body: {}", response_body);
3232
println!("Response code: {}", easy.response_code().unwrap());
3333
}""";
3434
expect(
@@ -57,7 +57,7 @@ fn main() {
5757
5858
let response_body = String::from_utf8_lossy(&data);
5959
60-
println!("Response body:{}", response_body);
60+
println!("Response body: {}", response_body);
6161
println!("Response code: {}", easy.response_code().unwrap());
6262
}""";
6363
expect(
@@ -86,7 +86,7 @@ fn main() {
8686
8787
let response_body = String::from_utf8_lossy(&data);
8888
89-
println!("Response body:{}", response_body);
89+
println!("Response body: {}", response_body);
9090
println!("Response code: {}", easy.response_code().unwrap());
9191
}""";
9292
expect(
@@ -115,7 +115,7 @@ fn main() {
115115
116116
let response_body = String::from_utf8_lossy(&data);
117117
118-
println!("Response body:{}", response_body);
118+
println!("Response body: {}", response_body);
119119
println!("Response code: {}", easy.response_code().unwrap());
120120
}""";
121121
expect(
@@ -149,7 +149,7 @@ fn main() {
149149
150150
let response_body = String::from_utf8_lossy(&data);
151151
152-
println!("Response body:{}", response_body);
152+
println!("Response body: {}", response_body);
153153
println!("Response code: {}", easy.response_code().unwrap());
154154
}""";
155155
expect(
@@ -183,7 +183,7 @@ fn main() {
183183
184184
let response_body = String::from_utf8_lossy(&data);
185185
186-
println!("Response body:{}", response_body);
186+
println!("Response body: {}", response_body);
187187
println!("Response code: {}", easy.response_code().unwrap());
188188
}""";
189189
expect(
@@ -212,7 +212,7 @@ fn main() {
212212
213213
let response_body = String::from_utf8_lossy(&data);
214214
215-
println!("Response body:{}", response_body);
215+
println!("Response body: {}", response_body);
216216
println!("Response code: {}", easy.response_code().unwrap());
217217
}""";
218218
expect(
@@ -246,7 +246,7 @@ fn main() {
246246
247247
let response_body = String::from_utf8_lossy(&data);
248248
249-
println!("Response body:{}", response_body);
249+
println!("Response body: {}", response_body);
250250
println!("Response code: {}", easy.response_code().unwrap());
251251
}""";
252252
expect(
@@ -275,7 +275,7 @@ fn main() {
275275
276276
let response_body = String::from_utf8_lossy(&data);
277277
278-
println!("Response body:{}", response_body);
278+
println!("Response body: {}", response_body);
279279
println!("Response code: {}", easy.response_code().unwrap());
280280
}""";
281281
expect(
@@ -309,7 +309,7 @@ fn main() {
309309
310310
let response_body = String::from_utf8_lossy(&data);
311311
312-
println!("Response body:{}", response_body);
312+
println!("Response body: {}", response_body);
313313
println!("Response code: {}", easy.response_code().unwrap());
314314
}""";
315315
expect(
@@ -343,7 +343,7 @@ fn main() {
343343
344344
let response_body = String::from_utf8_lossy(&data);
345345
346-
println!("Response body:{}", response_body);
346+
println!("Response body: {}", response_body);
347347
println!("Response code: {}", easy.response_code().unwrap());
348348
}""";
349349
expect(
@@ -372,7 +372,7 @@ fn main() {
372372
373373
let response_body = String::from_utf8_lossy(&data);
374374
375-
println!("Response body:{}", response_body);
375+
println!("Response body: {}", response_body);
376376
println!("Response code: {}", easy.response_code().unwrap());
377377
}""";
378378
expect(
@@ -404,7 +404,7 @@ fn main() {
404404
405405
let response_body = String::from_utf8_lossy(&data);
406406
407-
println!("Response body:{}", response_body);
407+
println!("Response body: {}", response_body);
408408
println!("Response code: {}", easy.response_code().unwrap());
409409
}""";
410410
expect(
@@ -433,7 +433,7 @@ fn main() {
433433
434434
let response_body = String::from_utf8_lossy(&data);
435435
436-
println!("Response body:{}", response_body);
436+
println!("Response body: {}", response_body);
437437
println!("Response code: {}", easy.response_code().unwrap());
438438
}""";
439439
expect(
@@ -474,7 +474,7 @@ fn main() {
474474
475475
let response_body = String::from_utf8_lossy(&data);
476476
477-
println!("Response body:{}", response_body);
477+
println!("Response body: {}", response_body);
478478
println!("Response code: {}", easy.response_code().unwrap());
479479
}""";
480480
expect(
@@ -518,7 +518,7 @@ fn main() {
518518
519519
let response_body = String::from_utf8_lossy(&data);
520520
521-
println!("Response body:{}", response_body);
521+
println!("Response body: {}", response_body);
522522
println!("Response code: {}", easy.response_code().unwrap());
523523
}""";
524524
expect(
@@ -558,7 +558,7 @@ fn main() {
558558
559559
let response_body = String::from_utf8_lossy(&data);
560560
561-
println!("Response body:{}", response_body);
561+
println!("Response body: {}", response_body);
562562
println!("Response code: {}", easy.response_code().unwrap());
563563
}""";
564564
expect(
@@ -602,7 +602,7 @@ fn main() {
602602
603603
let response_body = String::from_utf8_lossy(&data);
604604
605-
println!("Response body:{}", response_body);
605+
println!("Response body: {}", response_body);
606606
println!("Response code: {}", easy.response_code().unwrap());
607607
}""";
608608
expect(
@@ -651,7 +651,7 @@ fn main() {
651651
652652
let response_body = String::from_utf8_lossy(&data);
653653
654-
println!("Response body:{}", response_body);
654+
println!("Response body: {}", response_body);
655655
println!("Response code: {}", easy.response_code().unwrap());
656656
}""";
657657
expect(
@@ -691,7 +691,7 @@ fn main() {
691691
692692
let response_body = String::from_utf8_lossy(&data);
693693
694-
println!("Response body:{}", response_body);
694+
println!("Response body: {}", response_body);
695695
println!("Response code: {}", easy.response_code().unwrap());
696696
}""";
697697
expect(
@@ -731,7 +731,7 @@ fn main() {
731731
732732
let response_body = String::from_utf8_lossy(&data);
733733
734-
println!("Response body:{}", response_body);
734+
println!("Response body: {}", response_body);
735735
println!("Response code: {}", easy.response_code().unwrap());
736736
}""";
737737
expect(
@@ -775,7 +775,7 @@ fn main() {
775775
776776
let response_body = String::from_utf8_lossy(&data);
777777
778-
println!("Response body:{}", response_body);
778+
println!("Response body: {}", response_body);
779779
println!("Response code: {}", easy.response_code().unwrap());
780780
}""";
781781
expect(
@@ -821,7 +821,7 @@ fn main() {
821821
822822
let response_body = String::from_utf8_lossy(&data);
823823
824-
println!("Response body:{}", response_body);
824+
println!("Response body: {}", response_body);
825825
println!("Response code: {}", easy.response_code().unwrap());
826826
}""";
827827
expect(
@@ -864,7 +864,7 @@ fn main() {
864864
865865
let response_body = String::from_utf8_lossy(&data);
866866
867-
println!("Response body:{}", response_body);
867+
println!("Response body: {}", response_body);
868868
println!("Response code: {}", easy.response_code().unwrap());
869869
}""";
870870
expect(
@@ -907,7 +907,7 @@ fn main() {
907907
908908
let response_body = String::from_utf8_lossy(&data);
909909
910-
println!("Response body:{}", response_body);
910+
println!("Response body: {}", response_body);
911911
println!("Response code: {}", easy.response_code().unwrap());
912912
}""";
913913
expect(
@@ -939,7 +939,7 @@ fn main() {
939939
940940
let response_body = String::from_utf8_lossy(&data);
941941
942-
println!("Response body:{}", response_body);
942+
println!("Response body: {}", response_body);
943943
println!("Response code: {}", easy.response_code().unwrap());
944944
}""";
945945
expect(
@@ -979,7 +979,7 @@ fn main() {
979979
980980
let response_body = String::from_utf8_lossy(&data);
981981
982-
println!("Response body:{}", response_body);
982+
println!("Response body: {}", response_body);
983983
println!("Response code: {}", easy.response_code().unwrap());
984984
}""";
985985
expect(

0 commit comments

Comments
 (0)