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

shogo82148 / cfn-mackerel-macro / 25243590191

02 May 2026 04:19AM UTC coverage: 56.566% (+0.05%) from 56.515%
25243590191

Pull #571

github

shogo82148
bump Go 1.26.2
Pull Request #571: bump Go 1.26.2

78 of 124 new or added lines in 23 files covered. (62.9%)

2 existing lines in 1 file now uncovered.

2201 of 3891 relevant lines covered (56.57%)

4.48 hits per line

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

50.0
/dproxy/proxy.go
1
package dproxy
2

3
// Proxy is a proxy to access a document (interface{}).
4
type Proxy interface {
5
        // Nil returns true, if target value is nil.
6
        Nil() bool
7

8
        // Value returns a proxied value.  If there are no values, it returns
9
        // error.
10
        Value() (interface{}, error)
11

12
        // Bool returns its value.  If value isn't the type, it returns error.
13
        Bool() (bool, error)
14

15
        // OptionalBool returns the pointer of its value. If the value is not found, return nil.
16
        OptionalBool() (*bool, error)
17

18
        // Int64 returns its value.  If value isn't the type, it returns error.
19
        Int64() (int64, error)
20

21
        // OptionalInt64 returns the pointer of its value. If the value is not found, return nil.
22
        OptionalInt64() (*int64, error)
23

24
        // Uint64 returns its value.  If value isn't the type, it returns error.
25
        Uint64() (uint64, error)
26

27
        // OptionalUint64 returns the pointer of its value. If the value is not found, return nil.
28
        OptionalUint64() (*uint64, error)
29

30
        // Float64 returns its value.  If value isn't the type, it returns error.
31
        Float64() (float64, error)
32

33
        // OptionalFloat64 returns the pointer of its value. If the value is not found, return nil.
34
        OptionalFloat64() (*float64, error)
35

36
        // String returns its value.  If value isn't the type, it returns error.
37
        String() (string, error)
38

39
        // OptionalString returns its value.  If value isn't the type, it returns error.
40
        OptionalString() (*string, error)
41

42
        // Array returns its value.  If value isn't the type, it returns error.
43
        Array() ([]interface{}, error)
44

45
        // Map returns its value.  If value isn't the type, it returns error.
46
        Map() (map[string]interface{}, error)
47

48
        // A returns an item from value treated as the array.
49
        A(n int) Proxy
50

51
        // M returns an item from value treated as the map.
52
        M(k string) Proxy
53

54
        // P returns which pointed by JSON Pointer's query q.
55
        P(q string) Proxy
56

57
        // ProxySet returns a set which converted from its array value.
58
        ProxySet() ProxySet
59

60
        // Q returns set of all items which property matches with k.
61
        Q(k string) ProxySet
62

63
        // findJPT returns a match of JSON Pointer's Token t.
64
        findJPT(t string) Proxy
65

66
        // Proxy implements frame.
67
        frame
68
}
69

70
// ProxySet proxies to access to set.
71
type ProxySet interface {
72
        // Empty returns true when the set is empty.
73
        Empty() bool
74

75
        // Len returns count of items in the set.
76
        Len() int
77

78
        // BoolArray returns []bool which converted from the set.
79
        BoolArray() ([]bool, error)
80

81
        // Int64Array returns []int64 which converted from the set.
82
        Int64Array() ([]int64, error)
83

84
        // Float64Array returns []float64 which converted from the set.
85
        Float64Array() ([]float64, error)
86

87
        // StringArray returns []string which converted from the set.
88
        StringArray() ([]string, error)
89

90
        // ArrayArray returns [][]interface{} which converted from the set.
91
        ArrayArray() ([][]interface{}, error)
92

93
        // MapArray returns []map[string]interface{} which converted from the set.
94
        MapArray() ([]map[string]interface{}, error)
95

96
        // ProxyArray returns []Proxy which wrap each items.
97
        ProxyArray() ([]Proxy, error)
98

99
        // A returns an proxy for index in the set.
100
        A(n int) Proxy
101

102
        // Q returns set of all items which property matches with k.
103
        Q(k string) ProxySet
104

105
        // Qc returns set of property of all items.
106
        Qc(k string) ProxySet
107

108
        // Proxy implements frame.
109
        frame
110
}
111

112
// New creates a new Proxy instance for v.
113
func New(v interface{}) Proxy {
113✔
114
        return &valueProxy{value: v}
113✔
115
}
113✔
116

117
// NewSet create a new ProxySet instance for v.
NEW
118
func NewSet(v []interface{}) ProxySet {
×
119
        return &setProxy{values: v}
×
120
}
×
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