File tree Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,17 @@ setup() {
22
22
}
23
23
}
24
24
25
+ @test " one-digit-milliseconds" {
26
+ cat fixtures/one-digit-milliseconds.txt | {
27
+ run ./cli.js
28
+ [ " $status " -eq 0 ]
29
+ [ " ${lines[0]} " = " debug-one" ]
30
+ [ " ${lines[1]} " = " debug-two" ]
31
+ [ " ${lines[2]} " = " debug-three" ]
32
+ [ " ${# lines[@]} " = " 3" ]
33
+ }
34
+ }
35
+
25
36
@test " multiple-logs-multiple-lines" {
26
37
cat fixtures/multiple-logs-multiple-lines.txt | {
27
38
run ./cli.js
Original file line number Diff line number Diff line change
1
+ 04:25:21.1 (22596799)|USER_DEBUG|[1]|DEBUG|debug-one
2
+ 04:25:21.10 (22596799)|USER_DEBUG|[1]|DEBUG|debug-two
3
+ 04:25:21.100 (22596799)|USER_DEBUG|[1]|DEBUG|debug-three
4
+ 08:57:44.10 (1001463193)|CUMULATIVE_LIMIT_USAGE
5
+ 08:57:44.100 (1001463193)|LIMIT_USAGE_FOR_NS|(default)|
6
+ Number of SOQL queries: 22 out of 100
7
+ Number of query rows: 22 out of 50000
8
+ Number of SOSL queries: 0 out of 20
9
+ Number of DML statements: 0 out of 150
10
+ Number of Publish Immediate DML: 0 out of 150
11
+ Number of DML rows: 0 out of 10000
12
+ Maximum CPU time: 0 out of 10000
13
+ Maximum heap size: 0 out of 6000000
14
+ Number of callouts: 0 out of 100
15
+ Number of Email Invocations: 0 out of 10
16
+ Number of future calls: 0 out of 50
17
+ Number of queueable jobs added to the queue: 0 out of 50
18
+ Number of Mobile Apex push calls: 0 out of 10
19
+
20
+ 08:57:44.1 (1001463193)|CUMULATIVE_LIMIT_USAGE_END
Original file line number Diff line number Diff line change 1
1
const regex =
2
- / ( .* U S E R _ D E B U G ( \| [ ^ \| ] * ) { 2 } \| ) ( ( .| \n ) + ?) ( ( \n [ \d ] { 2 } : [ \d ] { 2 } : [ \d ] { 2 } \. [ \d ] { 2 } | $ ) ) / g;
2
+ / ( .* U S E R _ D E B U G ( \| [ ^ \| ] * ) { 2 } \| ) ( ( .| \n ) + ?) ( ( \n [ \d ] { 2 } : [ \d ] { 2 } : [ \d ] { 2 } \. [ \d ] { 1 , 3 } | $ ) ) / g;
3
3
4
4
export function filterApexLogs ( input ) {
5
5
let output = "" ;
You can’t perform that action at this time.
0 commit comments