push
github
1252 of 1543 branches covered (81.14%)
Branch coverage included in aggregate %.
384 of 384 new or added lines in 14 files covered. (100.0%)
12624 of 27153 relevant lines covered (46.49%)
363.31 hits per line
|
/** Created by knut on 15-01-14. */
|
1✔ |
|
import { log } from './mermaidUtils'; |
1✔ |
|
|
1✔ |
|
var message = ''; |
1✔ |
|
var info = false; |
1✔ |
|
|
1✔ |
|
export const setMessage = (txt) => {
|
1✔ |
|
log.debug('Setting message to: ' + txt);
|
× |
|
message = txt; |
× |
|
}; |
× |
|
|
1✔ |
|
export const getMessage = () => {
|
1✔ |
|
return message;
|
× |
|
}; |
× |
|
|
1✔ |
|
export const setInfo = (inf) => {
|
|
|
info = inf; |
1✔ |
|
}; |
1✔ |
|
|
1✔ |
|
export const getInfo = () => {
|
1✔ |
|
return info;
|
× |
|
}; |
× |
|
|
1✔ |
|
export default { |
1✔ |
|
setMessage, |
1✔ |
|
getMessage, |
1✔ |
|
setInfo, |
1✔ |
|
getInfo, |
1✔ |
|
clear: () => {
|
1✔ |
|
message = '';
|
× |
|
info = false;
|
× |
|
}, |
× |
|
}; |
1✔ |