github
1349 of 1526 branches covered (88.4%)
Branch coverage included in aggregate %.
12 of 784 new or added lines in 19 files covered. (1.53%)
10 existing lines in 1 file now uncovered.5324 of 9352 relevant lines covered (56.93%)
32.18 hits per line
1 |
import axios from '@ohos/axios'; |
× |
2 |
import request from './axios'; |
× |
3 |
|
× |
4 |
export const seeRequestInfo = () => { |
× |
NEW
|
return request.get('/?name=blucas', { |
× |
6 |
data: {
|
× |
7 |
bar: 'bar', |
× |
8 |
}, |
× |
9 |
params: {
|
× |
10 |
string: 'string', |
× |
11 |
boolean: true,
|
× |
12 |
number: 1,
|
× |
13 |
list: [1, 2, 3], |
× |
14 |
obj: { |
× |
15 |
name: 'blucas', |
× |
16 |
age: 28,
|
× |
17 |
country: 'China', |
× |
18 |
likes: [1, true, 2, 'work'], |
× |
19 |
}, |
× |
20 |
}, |
× |
21 |
}); |
× |
22 |
}; |
× |
23 |
|
× |
24 |
export const handle404 = () => { |
× |
NEW
UNCOV
|
return request.post('/404'); |
× |
UNCOV
26
|
}; |
× |
UNCOV
27
|
|
× |
UNCOV
28
|
export const handle500 = () => { |
× |
NEW
UNCOV
|
return request.delete('/500'); |
× |
UNCOV
30
|
}; |
× |
UNCOV
31
|
|
× |
UNCOV
32
|
export const seeErrorResponse = () => { |
× |
UNCOV
33
|
return request.post('https://xkxkqaiuwq.abc/a/b/c'); |
× |
UNCOV
34
|
}; |
× |