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