push
github
2519 of 5999 branches covered (41.99%)
Branch coverage included in aggregate %.
17 of 17 new or added lines in 4 files covered. (100.0%)
6282 of 12622 relevant lines covered (49.77%)
416.39 hits per line
1 |
/** Created by knut on 15-01-14. */
|
40✔ |
2 |
import { log } from '../../logger'; |
40✔ |
3 |
import { clear } from '../../commonDb'; |
40✔ |
4 |
|
40✔ |
5 |
var message = ''; |
40✔ |
6 |
var info = false; |
40✔ |
7 |
|
200✔ |
8 |
export const setMessage = (txt) => {
|
|
9 |
log.debug('Setting message to: ' + txt);
|
40✔ |
10 |
message = txt; |
|
11 |
}; |
40✔ |
12 |
|
|
13 |
export const getMessage = () => {
|
|
14 |
return message;
|
|
15 |
}; |
40✔ |
16 |
|
|
17 |
export const setInfo = (inf) => {
|
40✔ |
18 |
info = inf; |
40✔ |
19 |
}; |
40✔ |
20 |
|
9✔ |
21 |
export const getInfo = () => {
|
× |
22 |
return info;
|
× |
23 |
}; |
× |
24 |
|
× |
25 |
// export const parseError = (err, hash) => {
|
|
26 |
// global.mermaidAPI.parseError(err, hash)
|
40✔ |
27 |
// }
|
40✔ |
28 |
|
40✔ |
29 |
export default { |
40✔ |
30 |
setMessage, |
40✔ |
31 |
getMessage, |
40✔ |
32 |
setInfo, |
× |
33 |
getInfo, |
× |
34 |
clear, |
|
35 |
// parseError
|
40✔ |
36 |
}; |
× |