• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

geosolutions-it / MapStore2 / 19710972030

26 Nov 2025 03:38PM UTC coverage: 76.665% (-0.3%) from 76.929%
19710972030

Pull #11119

github

web-flow
Fix maven publish (#11739)
Pull Request #11119: Layer Selection Plugin on ArcGIS, WFS & WMS layers

32272 of 50209 branches covered (64.28%)

3 of 3 new or added lines in 2 files covered. (100.0%)

3018 existing lines in 249 files now uncovered.

40157 of 52380 relevant lines covered (76.66%)

37.9 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

87.5
/web/client/reducers/snapshot.js
1
/**
2
 * Copyright 2015, GeoSolutions Sas.
3
 * All rights reserved.
4
 *
5
 * This source code is licensed under the BSD-style license found in the
6
 * LICENSE file in the root directory of this source tree.
7
 */
8

9
import {
10
    CHANGE_SNAPSHOT_STATE,
11
    SNAPSHOT_ERROR,
12
    SNAPSHOT_READY,
13
    SNAPSHOT_ADD_QUEUE,
14
    SNAPSHOT_REMOVE_QUEUE
15
} from '../actions/snapshot';
16

17
function snapshot(state = null, action) {
×
18
    switch (action.type) {
7!
19
    case CHANGE_SNAPSHOT_STATE:
20
        return Object.assign({}, state, {
3✔
21
            state: action.state,
22
            tainted: action.tainted
23
        });
24
    case SNAPSHOT_READY:
25
        return Object.assign({}, state, {
1✔
26
            img: {
27
                data: action.imgData,
28
                width: action.width,
29
                height: action.height,
30
                size: action.size
31
            }
32
        });
33
    case SNAPSHOT_ERROR:
34
        return Object.assign({}, state, {
1✔
35
            error: action.error
36
        });
37
    case SNAPSHOT_ADD_QUEUE: {
38
        let queue = [];
1✔
39
        if (state && state.queue !== undefined) {
1!
UNCOV
40
            queue = [...state.queue, action.options];
×
41
        } else {
42
            queue = [action.options];
1✔
43
        }
44
        return Object.assign({}, state, {
1✔
45
            queue: queue
46
        });
47
    }
48
    case SNAPSHOT_REMOVE_QUEUE: {
49
        let queue = state.queue || [];
1!
50
        queue = queue.filter((conf) => {
1✔
51
            if (conf.key === action.options.key) {
2✔
52
                return false;
1✔
53
            }
54
            return true;
1✔
55
        });
56
        return Object.assign({}, state, {
1✔
57
            queue: queue
58
        });
59
    }
60
    default:
UNCOV
61
        return state;
×
62
    }
63

64
}
65

66
export default snapshot;
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc