push
github
1251 of 1542 branches covered (81.13%)
Branch coverage included in aggregate %.
3 of 3 new or added lines in 2 files covered. (100.0%)
12614 of 27150 relevant lines covered (46.46%)
363.35 hits per line
1 |
/** Created by knut on 15-01-14. */
|
1✔ |
2 |
import { log } from './mermaidUtils'; |
1✔ |
3 |
|
1✔ |
4 |
var message = ''; |
1✔ |
5 |
var info = false; |
1✔ |
6 |
|
1✔ |
7 |
export const setMessage = (txt) => {
|
1✔ |
8 |
log.debug('Setting message to: ' + txt);
|
× |
9 |
message = txt; |
× |
10 |
}; |
× |
11 |
|
1✔ |
12 |
export const getMessage = () => {
|
1✔ |
13 |
return message;
|
× |
14 |
}; |
× |
15 |
|
1✔ |
16 |
/**
|
1✔ |
17 |
* Sets the info flag |
1✔ |
18 |
* |
1✔ |
19 |
* @param {boolean} inf |
1✔ |
20 |
*/ |
1✔ |
21 |
export const setInfo = (inf) => {
|
|
22 |
info = inf; |
1✔ |
23 |
}; |
1✔ |
24 |
|
1✔ |
25 |
/** @returns Returns the info flag */
|
1✔ |
26 |
export const getInfo = () => {
|
1✔ |
27 |
return info;
|
× |
28 |
}; |
× |
29 |
|
1✔ |
30 |
export const clear = () => {
|
1✔ |
31 |
message = '';
|
× |
32 |
info = false;
|
× |
33 |
}; |
× |
34 |
|
1✔ |
35 |
export default { |
1✔ |
36 |
setMessage, |
1✔ |
37 |
getMessage, |
1✔ |
38 |
setInfo, |
1✔ |
39 |
getInfo, |
1✔ |
40 |
clear, |
1✔ |
41 |
}; |
1✔ |