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

compassinformatics / cpsi-mapview / 15022980938

14 May 2025 02:11PM UTC coverage: 26.333% (+0.04%) from 26.29%
15022980938

push

github

geographika
Move describe to test globals

492 of 2344 branches covered (20.99%)

Branch coverage included in aggregate %.

1464 of 5084 relevant lines covered (28.8%)

1.17 hits per line

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

20.0
/app/view/snappingExample/EdgeButton.js
1
Ext.define('CpsiMapview.view.snappingExample.EdgeModel', {
1✔
2
    extend: 'Ext.data.Model',
3
    requires: ['CpsiMapview.field.Line'],
4
    mixins: {
5
        //eventsMixin: 'CpsiMapview.model.FeatureEventsMixin',
6
        features: 'CpsiMapview.model.FeatureStoreMixin'
7
    },
8
    idProperty: 'edgeId',
9
    fields: [
10
        {
11
            name: 'edgeId',
12
            type: 'int',
13
            defaultValue: null,
14
            persist: false
15
        },
16
        {
17
            name: 'startNodeId',
18
            type: 'int',
19
            allowNull: true,
20
            defaultValue: null
21
        },
22
        {
23
            name: 'endNodeId',
24
            type: 'int',
25
            allowNull: true,
26
            defaultValue: null
27
        },
28
        {
29
            name: 'startEdgeId',
30
            type: 'int',
31
            allowNull: true,
32
            defaultValue: null
33
        },
34
        {
35
            name: 'endEdgeId',
36
            type: 'int',
37
            allowNull: true,
38
            defaultValue: null
39
        },
40
        {
41
            name: 'startPolygonId',
42
            type: 'int',
43
            allowNull: true,
44
            defaultValue: null
45
        },
46
        {
47
            name: 'endPolygonId',
48
            type: 'int',
49
            allowNull: true,
50
            defaultValue: null
51
        },
52
        {
53
            name: 'startCoord',
54
            type: 'auto',
55
            allowNull: true,
56
            defaultValue: null
57
        },
58
        {
59
            name: 'endCoord',
60
            type: 'auto',
61
            allowNull: true,
62
            defaultValue: null
63
        },
64
        {
65
            name: 'geometry',
66
            type: 'line'
67
        }
68
    ]
69
});
70

71
Ext.define('CpsiMapview.view.snappingExample.EdgeButton', {
1✔
72
    extend: 'Ext.button.Button',
73
    xtype: 'cmv_edgebutton',
74
    handler: function () {
75
        if (!this.window) {
×
76
            const rec = Ext.create(
×
77
                'CpsiMapview.view.snappingExample.EdgeModel',
78
                {
79
                    edgeId: null
80
                }
81
            );
82
            this.window = Ext.create(
×
83
                'CpsiMapview.view.snappingExample.EdgeWindow'
84
            );
85

86
            const vm = this.window.getViewModel();
×
87
            vm.set('currentRecord', rec);
×
88
        }
89
        this.window.show();
×
90
    }
91
});
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

© 2026 Coveralls, Inc