kubernetes-fluent-client 0.0.0-development → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/README.md +15 -0
  2. package/__mocks__/@kubernetes/client-node.ts +22 -0
  3. package/dist/fetch.d.ts +23 -0
  4. package/dist/fetch.d.ts.map +1 -0
  5. package/dist/fetch.js +85 -0
  6. package/dist/fetch.test.d.ts +2 -0
  7. package/dist/fetch.test.d.ts.map +1 -0
  8. package/dist/fetch.test.js +97 -0
  9. package/dist/fluent/index.d.ts +11 -0
  10. package/dist/fluent/index.d.ts.map +1 -0
  11. package/dist/fluent/index.js +100 -0
  12. package/dist/fluent/index.test.d.ts +2 -0
  13. package/dist/fluent/index.test.d.ts.map +1 -0
  14. package/dist/fluent/index.test.js +92 -0
  15. package/dist/fluent/types.d.ts +121 -0
  16. package/dist/fluent/types.d.ts.map +1 -0
  17. package/dist/fluent/types.js +14 -0
  18. package/dist/fluent/utils.d.ts +31 -0
  19. package/dist/fluent/utils.d.ts.map +1 -0
  20. package/dist/fluent/utils.js +116 -0
  21. package/dist/fluent/utils.test.d.ts +2 -0
  22. package/dist/fluent/utils.test.d.ts.map +1 -0
  23. package/dist/fluent/utils.test.js +88 -0
  24. package/dist/fluent/watch.d.ts +8 -0
  25. package/dist/fluent/watch.d.ts.map +1 -0
  26. package/dist/fluent/watch.js +78 -0
  27. package/dist/index.d.ts +7 -0
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/index.js +44 -1
  30. package/dist/kinds.d.ts +10 -0
  31. package/dist/kinds.d.ts.map +1 -0
  32. package/dist/kinds.js +489 -0
  33. package/dist/kinds.test.d.ts +2 -0
  34. package/dist/kinds.test.d.ts.map +1 -0
  35. package/dist/kinds.test.js +142 -0
  36. package/dist/types.d.ts +26 -0
  37. package/dist/types.d.ts.map +1 -0
  38. package/dist/types.js +16 -0
  39. package/dist/upstream.d.ts +4 -0
  40. package/dist/upstream.d.ts.map +1 -0
  41. package/dist/upstream.js +54 -0
  42. package/package.json +21 -8
  43. package/src/fetch.test.ts +115 -0
  44. package/src/fetch.ts +72 -0
  45. package/src/fluent/index.test.ts +136 -0
  46. package/src/fluent/index.ts +126 -0
  47. package/src/fluent/types.ts +151 -0
  48. package/src/fluent/utils.test.ts +110 -0
  49. package/src/fluent/utils.ts +152 -0
  50. package/src/fluent/watch.ts +94 -0
  51. package/src/index.ts +8 -3
  52. package/src/kinds.test.ts +1 -1
  53. package/src/kinds.ts +1 -1
  54. package/src/types.ts +1 -154
  55. package/.eslintrc.json +0 -26
  56. package/.prettierrc +0 -13
  57. package/coverage/clover.xml +0 -83
  58. package/coverage/coverage-final.json +0 -5
  59. package/coverage/lcov-report/base.css +0 -224
  60. package/coverage/lcov-report/block-navigation.js +0 -87
  61. package/coverage/lcov-report/favicon.png +0 -0
  62. package/coverage/lcov-report/index.html +0 -161
  63. package/coverage/lcov-report/index.ts.html +0 -127
  64. package/coverage/lcov-report/kinds.ts.html +0 -1675
  65. package/coverage/lcov-report/prettify.css +0 -1
  66. package/coverage/lcov-report/prettify.js +0 -2
  67. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  68. package/coverage/lcov-report/sorter.js +0 -196
  69. package/coverage/lcov-report/types.ts.html +0 -643
  70. package/coverage/lcov-report/upstream.ts.html +0 -244
  71. package/coverage/lcov.info +0 -208
  72. package/jest.config.json +0 -4
  73. package/tsconfig.json +0 -18
package/src/types.ts CHANGED
@@ -1,20 +1,11 @@
1
1
  // SPDX-License-Identifier: Apache-2.0
2
2
  // SPDX-FileCopyrightText: 2023-Present The Kubernetes Fluent Client Authors
3
3
 
4
- import { KubernetesListObject, KubernetesObject, V1ObjectMeta } from "@kubernetes/client-node";
5
-
6
- export { KubernetesListObject, KubernetesObject };
4
+ import { KubernetesObject, V1ObjectMeta } from "@kubernetes/client-node";
7
5
 
8
6
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
9
7
  export type GenericClass = abstract new () => any;
10
8
 
11
- export enum Operation {
12
- CREATE = "CREATE",
13
- UPDATE = "UPDATE",
14
- DELETE = "DELETE",
15
- CONNECT = "CONNECT",
16
- }
17
-
18
9
  /**
19
10
  * GenericKind is a generic Kubernetes object that can be used to represent any Kubernetes object
20
11
  * that is not explicitly supported. This can be used on its own or as a base class for
@@ -40,147 +31,3 @@ export interface GroupVersionKind {
40
31
  /** Optional, override the plural name for use in Webhook rules generation */
41
32
  readonly plural?: string;
42
33
  }
43
-
44
- /**
45
- * GroupVersionResource unambiguously identifies a resource. It doesn't anonymously include GroupVersion
46
- * to avoid automatic coercion. It doesn't use a GroupVersion to avoid custom marshalling
47
- */
48
- export interface GroupVersionResource {
49
- readonly group: string;
50
- readonly version: string;
51
- readonly resource: string;
52
- }
53
-
54
- /**
55
- * A Kubernetes admission request to be processed by a capability.
56
- */
57
- export interface Request<T = KubernetesObject> {
58
- /** UID is an identifier for the individual request/response. */
59
- readonly uid: string;
60
-
61
- /** Kind is the fully-qualified type of object being submitted (for example, v1.Pod or autoscaling.v1.Scale) */
62
- readonly kind: GroupVersionKind;
63
-
64
- /** Resource is the fully-qualified resource being requested (for example, v1.pods) */
65
- readonly resource: GroupVersionResource;
66
-
67
- /** SubResource is the sub-resource being requested, if any (for example, "status" or "scale") */
68
- readonly subResource?: string;
69
-
70
- /** RequestKind is the fully-qualified type of the original API request (for example, v1.Pod or autoscaling.v1.Scale). */
71
- readonly requestKind?: GroupVersionKind;
72
-
73
- /** RequestResource is the fully-qualified resource of the original API request (for example, v1.pods). */
74
- readonly requestResource?: GroupVersionResource;
75
-
76
- /** RequestSubResource is the sub-resource of the original API request, if any (for example, "status" or "scale"). */
77
- readonly requestSubResource?: string;
78
-
79
- /**
80
- * Name is the name of the object as presented in the request. On a CREATE operation, the client may omit name and
81
- * rely on the server to generate the name. If that is the case, this method will return the empty string.
82
- */
83
- readonly name: string;
84
-
85
- /** Namespace is the namespace associated with the request (if any). */
86
- readonly namespace?: string;
87
-
88
- /**
89
- * Operation is the operation being performed. This may be different than the operation
90
- * requested. e.g. a patch can result in either a CREATE or UPDATE Operation.
91
- */
92
- readonly operation: Operation;
93
-
94
- /** UserInfo is information about the requesting user */
95
- readonly userInfo: {
96
- /** The name that uniquely identifies this user among all active users. */
97
- username?: string;
98
-
99
- /**
100
- * A unique value that identifies this user across time. If this user is deleted
101
- * and another user by the same name is added, they will have different UIDs.
102
- */
103
- uid?: string;
104
-
105
- /** The names of groups this user is a part of. */
106
- groups?: string[];
107
-
108
- /** Any additional information provided by the authenticator. */
109
- extra?: {
110
- [key: string]: string[];
111
- };
112
- };
113
-
114
- /** Object is the object from the incoming request prior to default values being applied */
115
- readonly object: T;
116
-
117
- /** OldObject is the existing object. Only populated for UPDATE or DELETE requests. */
118
- readonly oldObject?: T;
119
-
120
- /** DryRun indicates that modifications will definitely not be persisted for this request. Defaults to false. */
121
- readonly dryRun?: boolean;
122
-
123
- /**
124
- * Options contains the options for the operation being performed.
125
- * e.g. `meta.k8s.io/v1.DeleteOptions` or `meta.k8s.io/v1.CreateOptions`. This may be
126
- * different than the options the caller provided. e.g. for a patch request the performed
127
- * Operation might be a CREATE, in which case the Options will a
128
- * `meta.k8s.io/v1.CreateOptions` even though the caller provided `meta.k8s.io/v1.PatchOptions`.
129
- */
130
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
131
- readonly options?: any;
132
- }
133
-
134
- export interface MutateResponse {
135
- /** UID is an identifier for the individual request/response. This must be copied over from the corresponding AdmissionRequest. */
136
- uid: string;
137
-
138
- /** Allowed indicates whether or not the admission request was permitted. */
139
- allowed: boolean;
140
-
141
- /** Result contains extra details into why an admission request was denied. This field IS NOT consulted in any way if "Allowed" is "true". */
142
- result?: string;
143
-
144
- /** The patch body. Currently we only support "JSONPatch" which implements RFC 6902. */
145
- patch?: string;
146
-
147
- /** The type of Patch. Currently we only allow "JSONPatch". */
148
- patchType?: "JSONPatch";
149
-
150
- /**
151
- * AuditAnnotations is an unstructured key value map set by remote admission controller (e.g. error=image-blacklisted).
152
- *
153
- * See https://kubernetes.io/docs/reference/labels-annotations-taints/audit-annotations/ for more information
154
- */
155
- auditAnnotations?: {
156
- [key: string]: string;
157
- };
158
-
159
- /** warnings is a list of warning messages to return to the requesting API client. */
160
- warnings?: string[];
161
- }
162
-
163
- export interface ValidateResponse extends MutateResponse {
164
- /** Status contains extra details into why an admission request was denied. This field IS NOT consulted in any way if "Allowed" is "true". */
165
- status?: {
166
- /** A machine-readable description of why this operation is in the
167
- "Failure" status. If this value is empty there is no information available. */
168
- code: number;
169
-
170
- /** A human-readable description of the status of this operation. */
171
- message: string;
172
- };
173
- }
174
-
175
- // Special types to handle the recursive keyof typescript lookup
176
- type Join<K, P> = K extends string | number
177
- ? P extends string | number
178
- ? `${K}${"" extends P ? "" : "."}${P}`
179
- : never
180
- : never;
181
-
182
- export type Paths<T, D extends number = 10> = [D] extends [never]
183
- ? never
184
- : T extends object
185
- ? { [K in keyof T]-?: K extends string | number ? `${K}` | Join<K, Paths<T[K]>> : never }[keyof T]
186
- : "";
package/.eslintrc.json DELETED
@@ -1,26 +0,0 @@
1
- {
2
- "env": {
3
- "browser": false,
4
- "es2021": true
5
- },
6
- "extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
7
- "parser": "@typescript-eslint/parser",
8
- "parserOptions": {
9
- "project": ["tsconfig.json"],
10
- "ecmaVersion": 2022
11
- },
12
- "rules": {
13
- "class-methods-use-this": "warn",
14
- "consistent-this": "warn",
15
- "no-invalid-this": "warn",
16
- "@typescript-eslint/no-floating-promises": ["warn"]
17
- },
18
- "plugins": ["@typescript-eslint"],
19
- "ignorePatterns": [
20
- "journey",
21
- "node_modules",
22
- "dist",
23
- "__mocks__"
24
- ],
25
- "root": true
26
- }
package/.prettierrc DELETED
@@ -1,13 +0,0 @@
1
- {
2
- "arrowParens": "avoid",
3
- "bracketSameLine": true,
4
- "bracketSpacing": true,
5
- "embeddedLanguageFormatting": "auto",
6
- "insertPragma": false,
7
- "printWidth": 100,
8
- "quoteProps": "as-needed",
9
- "requirePragma": false,
10
- "semi": true,
11
- "useTabs": false,
12
- "tabWidth": 2
13
- }
@@ -1,83 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1695364604614" clover="3.2.0">
3
- <project timestamp="1695364604614" name="All files">
4
- <metrics statements="65" coveredstatements="65" conditionals="3" coveredconditionals="3" methods="52" coveredmethods="39" elements="120" coveredelements="107" complexity="0" loc="65" ncloc="65" packages="1" files="4" classes="4"/>
5
- <file name="index.ts" path="/Users/jeff/Code/kubernetes-fluent-client/src/index.ts">
6
- <metrics statements="4" coveredstatements="4" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="1"/>
7
- <line num="5" count="1" type="stmt"/>
8
- <line num="8" count="1" type="stmt"/>
9
- <line num="12" count="42" type="stmt"/>
10
- <line num="14" count="1" type="stmt"/>
11
- </file>
12
- <file name="kinds.ts" path="/Users/jeff/Code/kubernetes-fluent-client/src/kinds.ts">
13
- <metrics statements="8" coveredstatements="8" conditionals="1" coveredconditionals="1" methods="2" coveredmethods="2"/>
14
- <line num="6" count="1" type="stmt"/>
15
- <line num="510" count="1" type="stmt"/>
16
- <line num="511" count="41" type="stmt"/>
17
- <line num="520" count="1" type="stmt"/>
18
- <line num="521" count="2" type="stmt"/>
19
- <line num="524" count="2" type="cond" truecount="1" falsecount="0"/>
20
- <line num="525" count="1" type="stmt"/>
21
- <line num="529" count="1" type="stmt"/>
22
- </file>
23
- <file name="types.ts" path="/Users/jeff/Code/kubernetes-fluent-client/src/types.ts">
24
- <metrics statements="6" coveredstatements="6" conditionals="2" coveredconditionals="2" methods="1" coveredmethods="1"/>
25
- <line num="11" count="1" type="cond" truecount="2" falsecount="0"/>
26
- <line num="12" count="1" type="stmt"/>
27
- <line num="13" count="1" type="stmt"/>
28
- <line num="14" count="1" type="stmt"/>
29
- <line num="15" count="1" type="stmt"/>
30
- <line num="23" count="1" type="stmt"/>
31
- </file>
32
- <file name="upstream.ts" path="/Users/jeff/Code/kubernetes-fluent-client/src/upstream.ts">
33
- <metrics statements="47" coveredstatements="47" conditionals="0" coveredconditionals="0" methods="46" coveredmethods="35"/>
34
- <line num="5" count="1" type="stmt"/>
35
- <line num="6" count="1" type="stmt"/>
36
- <line num="7" count="1" type="stmt"/>
37
- <line num="8" count="1" type="stmt"/>
38
- <line num="9" count="2" type="stmt"/>
39
- <line num="10" count="2" type="stmt"/>
40
- <line num="11" count="2" type="stmt"/>
41
- <line num="12" count="1" type="stmt"/>
42
- <line num="13" count="2" type="stmt"/>
43
- <line num="14" count="1" type="stmt"/>
44
- <line num="15" count="2" type="stmt"/>
45
- <line num="16" count="2" type="stmt"/>
46
- <line num="17" count="2" type="stmt"/>
47
- <line num="18" count="1" type="stmt"/>
48
- <line num="19" count="2" type="stmt"/>
49
- <line num="20" count="2" type="stmt"/>
50
- <line num="21" count="1" type="stmt"/>
51
- <line num="22" count="2" type="stmt"/>
52
- <line num="23" count="1" type="stmt"/>
53
- <line num="24" count="1" type="stmt"/>
54
- <line num="25" count="1" type="stmt"/>
55
- <line num="26" count="2" type="stmt"/>
56
- <line num="27" count="2" type="stmt"/>
57
- <line num="28" count="2" type="stmt"/>
58
- <line num="29" count="2" type="stmt"/>
59
- <line num="30" count="2" type="stmt"/>
60
- <line num="31" count="3" type="stmt"/>
61
- <line num="32" count="2" type="stmt"/>
62
- <line num="33" count="2" type="stmt"/>
63
- <line num="34" count="2" type="stmt"/>
64
- <line num="35" count="2" type="stmt"/>
65
- <line num="36" count="2" type="stmt"/>
66
- <line num="37" count="2" type="stmt"/>
67
- <line num="38" count="2" type="stmt"/>
68
- <line num="39" count="2" type="stmt"/>
69
- <line num="40" count="3" type="stmt"/>
70
- <line num="41" count="2" type="stmt"/>
71
- <line num="42" count="2" type="stmt"/>
72
- <line num="43" count="3" type="stmt"/>
73
- <line num="44" count="3" type="stmt"/>
74
- <line num="45" count="3" type="stmt"/>
75
- <line num="46" count="2" type="stmt"/>
76
- <line num="47" count="2" type="stmt"/>
77
- <line num="48" count="2" type="stmt"/>
78
- <line num="49" count="2" type="stmt"/>
79
- <line num="50" count="4" type="stmt"/>
80
- <line num="53" count="1" type="stmt"/>
81
- </file>
82
- </project>
83
- </coverage>
@@ -1,5 +0,0 @@
1
- {"/Users/jeff/Code/kubernetes-fluent-client/src/index.ts": {"path":"/Users/jeff/Code/kubernetes-fluent-client/src/index.ts","statementMap":{"0":{"start":{"line":5,"column":0},"end":{"line":5,"column":35}},"1":{"start":{"line":8,"column":9},"end":{"line":8,"column":13}},"2":{"start":{"line":12,"column":0},"end":{"line":12,"column":9}},"3":{"start":{"line":12,"column":9},"end":{"line":12,"column":34}},"4":{"start":{"line":12,"column":34},"end":{"line":12,"column":42}},"5":{"start":{"line":12,"column":42},"end":{"line":12,"column":72}},"6":{"start":{"line":14,"column":0},"end":{"line":14,"column":24}}},"fnMap":{"0":{"name":"(anonymous_7)","decl":{"start":{"line":12,"column":9},"end":{"line":12,"column":32}},"loc":{"start":{"line":12,"column":9},"end":{"line":12,"column":34}}},"1":{"name":"(anonymous_8)","decl":{"start":{"line":12,"column":34},"end":{"line":12,"column":40}},"loc":{"start":{"line":12,"column":34},"end":{"line":12,"column":42}}},"2":{"name":"(anonymous_9)","decl":{"start":{"line":12,"column":42},"end":{"line":12,"column":54}},"loc":{"start":{"line":12,"column":42},"end":{"line":12,"column":72}}}},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":42,"4":1,"5":1,"6":1},"f":{"0":41,"1":0,"2":0},"b":{}}
2
- ,"/Users/jeff/Code/kubernetes-fluent-client/src/kinds.ts": {"path":"/Users/jeff/Code/kubernetes-fluent-client/src/kinds.ts","statementMap":{"0":{"start":{"line":6,"column":13},"end":{"line":508,"column":2}},"1":{"start":{"line":511,"column":2},"end":{"line":511,"column":21}},"2":{"start":{"line":510,"column":0},"end":{"line":510,"column":16}},"3":{"start":{"line":520,"column":28},"end":{"line":530,"column":1}},"4":{"start":{"line":521,"column":15},"end":{"line":521,"column":25}},"5":{"start":{"line":524,"column":2},"end":{"line":526,"column":null}},"6":{"start":{"line":525,"column":4},"end":{"line":525,"column":54}},"7":{"start":{"line":529,"column":2},"end":{"line":529,"column":34}},"8":{"start":{"line":520,"column":13},"end":{"line":520,"column":28}}},"fnMap":{"0":{"name":"modelToGroupVersionKind","decl":{"start":{"line":510,"column":16},"end":{"line":510,"column":39}},"loc":{"start":{"line":510,"column":51},"end":{"line":512,"column":1}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":520,"column":28},"end":{"line":520,"column":29}},"loc":{"start":{"line":520,"column":88},"end":{"line":530,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":524,"column":2},"end":{"line":526,"column":null}},"type":"if","locations":[{"start":{"line":524,"column":2},"end":{"line":526,"column":null}}]}},"s":{"0":1,"1":41,"2":1,"3":1,"4":2,"5":2,"6":1,"7":1,"8":1},"f":{"0":41,"1":2},"b":{"0":[1]}}
3
- ,"/Users/jeff/Code/kubernetes-fluent-client/src/types.ts": {"path":"/Users/jeff/Code/kubernetes-fluent-client/src/types.ts","statementMap":{"0":{"start":{"line":11,"column":0},"end":{"line":11,"column":null}},"1":{"start":{"line":12,"column":2},"end":{"line":12,"column":null}},"2":{"start":{"line":13,"column":2},"end":{"line":13,"column":null}},"3":{"start":{"line":14,"column":2},"end":{"line":14,"column":null}},"4":{"start":{"line":15,"column":2},"end":{"line":15,"column":null}},"5":{"start":{"line":23,"column":0},"end":{"line":23,"column":13}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":11,"column":0},"end":{"line":11,"column":12}},"loc":{"start":{"line":11,"column":21},"end":{"line":16,"column":1}}}},"branchMap":{"0":{"loc":{"start":{"line":11,"column":12},"end":{"line":11,"column":null}},"type":"binary-expr","locations":[{"start":{"line":11,"column":12},"end":{"line":11,"column":21}},{"start":{"line":11,"column":21},"end":{"line":11,"column":null}}]}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1},"f":{"0":1},"b":{"0":[1,1]}}
4
- ,"/Users/jeff/Code/kubernetes-fluent-client/src/upstream.ts": {"path":"/Users/jeff/Code/kubernetes-fluent-client/src/upstream.ts","statementMap":{"0":{"start":{"line":5,"column":0},"end":{"line":5,"column":null}},"1":{"start":{"line":6,"column":2},"end":{"line":6,"column":22}},"2":{"start":{"line":7,"column":2},"end":{"line":7,"column":28}},"3":{"start":{"line":8,"column":2},"end":{"line":8,"column":58}},"4":{"start":{"line":9,"column":2},"end":{"line":9,"column":30}},"5":{"start":{"line":10,"column":2},"end":{"line":10,"column":44}},"6":{"start":{"line":11,"column":2},"end":{"line":11,"column":26}},"7":{"start":{"line":12,"column":2},"end":{"line":12,"column":44}},"8":{"start":{"line":13,"column":2},"end":{"line":13,"column":22}},"9":{"start":{"line":14,"column":2},"end":{"line":14,"column":26}},"10":{"start":{"line":15,"column":2},"end":{"line":15,"column":56}},"11":{"start":{"line":16,"column":2},"end":{"line":16,"column":26}},"12":{"start":{"line":17,"column":2},"end":{"line":17,"column":28}},"13":{"start":{"line":18,"column":2},"end":{"line":18,"column":34}},"14":{"start":{"line":19,"column":2},"end":{"line":19,"column":54}},"15":{"start":{"line":20,"column":2},"end":{"line":20,"column":22}},"16":{"start":{"line":21,"column":2},"end":{"line":21,"column":32}},"17":{"start":{"line":22,"column":2},"end":{"line":22,"column":14}},"18":{"start":{"line":23,"column":2},"end":{"line":23,"column":28}},"19":{"start":{"line":24,"column":2},"end":{"line":24,"column":56}},"20":{"start":{"line":25,"column":2},"end":{"line":25,"column":64}},"21":{"start":{"line":26,"column":2},"end":{"line":26,"column":26}},"22":{"start":{"line":27,"column":2},"end":{"line":27,"column":34}},"23":{"start":{"line":28,"column":2},"end":{"line":28,"column":16}},"24":{"start":{"line":29,"column":2},"end":{"line":29,"column":40}},"25":{"start":{"line":30,"column":2},"end":{"line":30,"column":50}},"26":{"start":{"line":31,"column":2},"end":{"line":31,"column":14}},"27":{"start":{"line":32,"column":2},"end":{"line":32,"column":46}},"28":{"start":{"line":33,"column":2},"end":{"line":33,"column":30}},"29":{"start":{"line":34,"column":2},"end":{"line":34,"column":28}},"30":{"start":{"line":35,"column":2},"end":{"line":35,"column":50}},"31":{"start":{"line":36,"column":2},"end":{"line":36,"column":34}},"32":{"start":{"line":37,"column":2},"end":{"line":37,"column":16}},"33":{"start":{"line":38,"column":2},"end":{"line":38,"column":30}},"34":{"start":{"line":39,"column":2},"end":{"line":39,"column":32}},"35":{"start":{"line":40,"column":2},"end":{"line":40,"column":20}},"36":{"start":{"line":41,"column":2},"end":{"line":41,"column":54}},"37":{"start":{"line":42,"column":2},"end":{"line":42,"column":52}},"38":{"start":{"line":43,"column":2},"end":{"line":43,"column":22}},"39":{"start":{"line":44,"column":2},"end":{"line":44,"column":36}},"40":{"start":{"line":45,"column":2},"end":{"line":45,"column":30}},"41":{"start":{"line":46,"column":2},"end":{"line":46,"column":32}},"42":{"start":{"line":47,"column":2},"end":{"line":47,"column":46}},"43":{"start":{"line":48,"column":2},"end":{"line":48,"column":30}},"44":{"start":{"line":49,"column":2},"end":{"line":49,"column":68}},"45":{"start":{"line":50,"column":2},"end":{"line":50,"column":40}},"46":{"start":{"line":53,"column":0},"end":{"line":53,"column":9}},"47":{"start":{"line":53,"column":9},"end":{"line":53,"column":38}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":6,"column":2},"end":{"line":6,"column":13}},"loc":{"start":{"line":6,"column":2},"end":{"line":6,"column":22}}},"1":{"name":"(anonymous_1)","decl":{"start":{"line":7,"column":2},"end":{"line":7,"column":14}},"loc":{"start":{"line":7,"column":2},"end":{"line":7,"column":28}}},"2":{"name":"(anonymous_2)","decl":{"start":{"line":8,"column":2},"end":{"line":8,"column":29}},"loc":{"start":{"line":8,"column":2},"end":{"line":8,"column":58}}},"3":{"name":"(anonymous_3)","decl":{"start":{"line":9,"column":2},"end":{"line":9,"column":15}},"loc":{"start":{"line":9,"column":2},"end":{"line":9,"column":30}}},"4":{"name":"(anonymous_4)","decl":{"start":{"line":10,"column":2},"end":{"line":10,"column":22}},"loc":{"start":{"line":10,"column":2},"end":{"line":10,"column":44}}},"5":{"name":"(anonymous_5)","decl":{"start":{"line":11,"column":2},"end":{"line":11,"column":13}},"loc":{"start":{"line":11,"column":2},"end":{"line":11,"column":26}}},"6":{"name":"(anonymous_6)","decl":{"start":{"line":12,"column":2},"end":{"line":12,"column":22}},"loc":{"start":{"line":12,"column":2},"end":{"line":12,"column":44}}},"7":{"name":"(anonymous_7)","decl":{"start":{"line":13,"column":2},"end":{"line":13,"column":11}},"loc":{"start":{"line":13,"column":2},"end":{"line":13,"column":22}}},"8":{"name":"(anonymous_8)","decl":{"start":{"line":14,"column":2},"end":{"line":14,"column":13}},"loc":{"start":{"line":14,"column":2},"end":{"line":14,"column":26}}},"9":{"name":"(anonymous_9)","decl":{"start":{"line":15,"column":2},"end":{"line":15,"column":28}},"loc":{"start":{"line":15,"column":2},"end":{"line":15,"column":56}}},"10":{"name":"(anonymous_10)","decl":{"start":{"line":16,"column":2},"end":{"line":16,"column":13}},"loc":{"start":{"line":16,"column":2},"end":{"line":16,"column":26}}},"11":{"name":"(anonymous_11)","decl":{"start":{"line":17,"column":2},"end":{"line":17,"column":14}},"loc":{"start":{"line":17,"column":2},"end":{"line":17,"column":28}}},"12":{"name":"(anonymous_12)","decl":{"start":{"line":18,"column":2},"end":{"line":18,"column":17}},"loc":{"start":{"line":18,"column":2},"end":{"line":18,"column":34}}},"13":{"name":"(anonymous_13)","decl":{"start":{"line":19,"column":2},"end":{"line":19,"column":27}},"loc":{"start":{"line":19,"column":2},"end":{"line":19,"column":54}}},"14":{"name":"(anonymous_14)","decl":{"start":{"line":20,"column":2},"end":{"line":20,"column":11}},"loc":{"start":{"line":20,"column":2},"end":{"line":20,"column":22}}},"15":{"name":"(anonymous_15)","decl":{"start":{"line":21,"column":2},"end":{"line":21,"column":16}},"loc":{"start":{"line":21,"column":2},"end":{"line":21,"column":32}}},"16":{"name":"(anonymous_16)","decl":{"start":{"line":22,"column":2},"end":{"line":22,"column":7}},"loc":{"start":{"line":22,"column":2},"end":{"line":22,"column":14}}},"17":{"name":"(anonymous_17)","decl":{"start":{"line":23,"column":2},"end":{"line":23,"column":14}},"loc":{"start":{"line":23,"column":2},"end":{"line":23,"column":28}}},"18":{"name":"(anonymous_18)","decl":{"start":{"line":24,"column":2},"end":{"line":24,"column":28}},"loc":{"start":{"line":24,"column":2},"end":{"line":24,"column":56}}},"19":{"name":"(anonymous_19)","decl":{"start":{"line":25,"column":2},"end":{"line":25,"column":32}},"loc":{"start":{"line":25,"column":2},"end":{"line":25,"column":64}}},"20":{"name":"(anonymous_20)","decl":{"start":{"line":26,"column":2},"end":{"line":26,"column":13}},"loc":{"start":{"line":26,"column":2},"end":{"line":26,"column":26}}},"21":{"name":"(anonymous_21)","decl":{"start":{"line":27,"column":2},"end":{"line":27,"column":17}},"loc":{"start":{"line":27,"column":2},"end":{"line":27,"column":34}}},"22":{"name":"(anonymous_22)","decl":{"start":{"line":28,"column":2},"end":{"line":28,"column":8}},"loc":{"start":{"line":28,"column":2},"end":{"line":28,"column":16}}},"23":{"name":"(anonymous_23)","decl":{"start":{"line":29,"column":2},"end":{"line":29,"column":20}},"loc":{"start":{"line":29,"column":2},"end":{"line":29,"column":40}}},"24":{"name":"(anonymous_24)","decl":{"start":{"line":30,"column":2},"end":{"line":30,"column":25}},"loc":{"start":{"line":30,"column":2},"end":{"line":30,"column":50}}},"25":{"name":"(anonymous_25)","decl":{"start":{"line":31,"column":2},"end":{"line":31,"column":7}},"loc":{"start":{"line":31,"column":2},"end":{"line":31,"column":14}}},"26":{"name":"(anonymous_26)","decl":{"start":{"line":32,"column":2},"end":{"line":32,"column":23}},"loc":{"start":{"line":32,"column":2},"end":{"line":32,"column":46}}},"27":{"name":"(anonymous_27)","decl":{"start":{"line":33,"column":2},"end":{"line":33,"column":15}},"loc":{"start":{"line":33,"column":2},"end":{"line":33,"column":30}}},"28":{"name":"(anonymous_28)","decl":{"start":{"line":34,"column":2},"end":{"line":34,"column":14}},"loc":{"start":{"line":34,"column":2},"end":{"line":34,"column":28}}},"29":{"name":"(anonymous_29)","decl":{"start":{"line":35,"column":2},"end":{"line":35,"column":25}},"loc":{"start":{"line":35,"column":2},"end":{"line":35,"column":50}}},"30":{"name":"(anonymous_30)","decl":{"start":{"line":36,"column":2},"end":{"line":36,"column":17}},"loc":{"start":{"line":36,"column":2},"end":{"line":36,"column":34}}},"31":{"name":"(anonymous_31)","decl":{"start":{"line":37,"column":2},"end":{"line":37,"column":8}},"loc":{"start":{"line":37,"column":2},"end":{"line":37,"column":16}}},"32":{"name":"(anonymous_32)","decl":{"start":{"line":38,"column":2},"end":{"line":38,"column":15}},"loc":{"start":{"line":38,"column":2},"end":{"line":38,"column":30}}},"33":{"name":"(anonymous_33)","decl":{"start":{"line":39,"column":2},"end":{"line":39,"column":16}},"loc":{"start":{"line":39,"column":2},"end":{"line":39,"column":32}}},"34":{"name":"(anonymous_34)","decl":{"start":{"line":40,"column":2},"end":{"line":40,"column":10}},"loc":{"start":{"line":40,"column":2},"end":{"line":40,"column":20}}},"35":{"name":"(anonymous_35)","decl":{"start":{"line":41,"column":2},"end":{"line":41,"column":27}},"loc":{"start":{"line":41,"column":2},"end":{"line":41,"column":54}}},"36":{"name":"(anonymous_36)","decl":{"start":{"line":42,"column":2},"end":{"line":42,"column":26}},"loc":{"start":{"line":42,"column":2},"end":{"line":42,"column":52}}},"37":{"name":"(anonymous_37)","decl":{"start":{"line":43,"column":2},"end":{"line":43,"column":11}},"loc":{"start":{"line":43,"column":2},"end":{"line":43,"column":22}}},"38":{"name":"(anonymous_38)","decl":{"start":{"line":44,"column":2},"end":{"line":44,"column":18}},"loc":{"start":{"line":44,"column":2},"end":{"line":44,"column":36}}},"39":{"name":"(anonymous_39)","decl":{"start":{"line":45,"column":2},"end":{"line":45,"column":15}},"loc":{"start":{"line":45,"column":2},"end":{"line":45,"column":30}}},"40":{"name":"(anonymous_40)","decl":{"start":{"line":46,"column":2},"end":{"line":46,"column":16}},"loc":{"start":{"line":46,"column":2},"end":{"line":46,"column":32}}},"41":{"name":"(anonymous_41)","decl":{"start":{"line":47,"column":2},"end":{"line":47,"column":23}},"loc":{"start":{"line":47,"column":2},"end":{"line":47,"column":46}}},"42":{"name":"(anonymous_42)","decl":{"start":{"line":48,"column":2},"end":{"line":48,"column":15}},"loc":{"start":{"line":48,"column":2},"end":{"line":48,"column":30}}},"43":{"name":"(anonymous_43)","decl":{"start":{"line":49,"column":2},"end":{"line":49,"column":34}},"loc":{"start":{"line":49,"column":2},"end":{"line":49,"column":68}}},"44":{"name":"(anonymous_44)","decl":{"start":{"line":50,"column":2},"end":{"line":50,"column":20}},"loc":{"start":{"line":50,"column":2},"end":{"line":50,"column":40}}},"45":{"name":"(anonymous_45)","decl":{"start":{"line":53,"column":9},"end":{"line":53,"column":20}},"loc":{"start":{"line":53,"column":9},"end":{"line":53,"column":38}}}},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":1,"4":2,"5":2,"6":2,"7":1,"8":2,"9":1,"10":2,"11":2,"12":2,"13":1,"14":2,"15":2,"16":1,"17":2,"18":1,"19":1,"20":1,"21":2,"22":2,"23":2,"24":2,"25":2,"26":3,"27":2,"28":2,"29":2,"30":2,"31":2,"32":2,"33":2,"34":2,"35":3,"36":2,"37":2,"38":3,"39":3,"40":3,"41":2,"42":2,"43":2,"44":2,"45":4,"46":1,"47":1},"f":{"0":0,"1":0,"2":0,"3":1,"4":1,"5":1,"6":0,"7":1,"8":0,"9":1,"10":1,"11":1,"12":0,"13":1,"14":1,"15":0,"16":1,"17":0,"18":0,"19":0,"20":1,"21":1,"22":1,"23":1,"24":1,"25":2,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":2,"35":1,"36":1,"37":2,"38":2,"39":2,"40":1,"41":1,"42":1,"43":1,"44":3,"45":0},"b":{}}
5
- }
@@ -1,224 +0,0 @@
1
- body, html {
2
- margin:0; padding: 0;
3
- height: 100%;
4
- }
5
- body {
6
- font-family: Helvetica Neue, Helvetica, Arial;
7
- font-size: 14px;
8
- color:#333;
9
- }
10
- .small { font-size: 12px; }
11
- *, *:after, *:before {
12
- -webkit-box-sizing:border-box;
13
- -moz-box-sizing:border-box;
14
- box-sizing:border-box;
15
- }
16
- h1 { font-size: 20px; margin: 0;}
17
- h2 { font-size: 14px; }
18
- pre {
19
- font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace;
20
- margin: 0;
21
- padding: 0;
22
- -moz-tab-size: 2;
23
- -o-tab-size: 2;
24
- tab-size: 2;
25
- }
26
- a { color:#0074D9; text-decoration:none; }
27
- a:hover { text-decoration:underline; }
28
- .strong { font-weight: bold; }
29
- .space-top1 { padding: 10px 0 0 0; }
30
- .pad2y { padding: 20px 0; }
31
- .pad1y { padding: 10px 0; }
32
- .pad2x { padding: 0 20px; }
33
- .pad2 { padding: 20px; }
34
- .pad1 { padding: 10px; }
35
- .space-left2 { padding-left:55px; }
36
- .space-right2 { padding-right:20px; }
37
- .center { text-align:center; }
38
- .clearfix { display:block; }
39
- .clearfix:after {
40
- content:'';
41
- display:block;
42
- height:0;
43
- clear:both;
44
- visibility:hidden;
45
- }
46
- .fl { float: left; }
47
- @media only screen and (max-width:640px) {
48
- .col3 { width:100%; max-width:100%; }
49
- .hide-mobile { display:none!important; }
50
- }
51
-
52
- .quiet {
53
- color: #7f7f7f;
54
- color: rgba(0,0,0,0.5);
55
- }
56
- .quiet a { opacity: 0.7; }
57
-
58
- .fraction {
59
- font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
60
- font-size: 10px;
61
- color: #555;
62
- background: #E8E8E8;
63
- padding: 4px 5px;
64
- border-radius: 3px;
65
- vertical-align: middle;
66
- }
67
-
68
- div.path a:link, div.path a:visited { color: #333; }
69
- table.coverage {
70
- border-collapse: collapse;
71
- margin: 10px 0 0 0;
72
- padding: 0;
73
- }
74
-
75
- table.coverage td {
76
- margin: 0;
77
- padding: 0;
78
- vertical-align: top;
79
- }
80
- table.coverage td.line-count {
81
- text-align: right;
82
- padding: 0 5px 0 20px;
83
- }
84
- table.coverage td.line-coverage {
85
- text-align: right;
86
- padding-right: 10px;
87
- min-width:20px;
88
- }
89
-
90
- table.coverage td span.cline-any {
91
- display: inline-block;
92
- padding: 0 5px;
93
- width: 100%;
94
- }
95
- .missing-if-branch {
96
- display: inline-block;
97
- margin-right: 5px;
98
- border-radius: 3px;
99
- position: relative;
100
- padding: 0 4px;
101
- background: #333;
102
- color: yellow;
103
- }
104
-
105
- .skip-if-branch {
106
- display: none;
107
- margin-right: 10px;
108
- position: relative;
109
- padding: 0 4px;
110
- background: #ccc;
111
- color: white;
112
- }
113
- .missing-if-branch .typ, .skip-if-branch .typ {
114
- color: inherit !important;
115
- }
116
- .coverage-summary {
117
- border-collapse: collapse;
118
- width: 100%;
119
- }
120
- .coverage-summary tr { border-bottom: 1px solid #bbb; }
121
- .keyline-all { border: 1px solid #ddd; }
122
- .coverage-summary td, .coverage-summary th { padding: 10px; }
123
- .coverage-summary tbody { border: 1px solid #bbb; }
124
- .coverage-summary td { border-right: 1px solid #bbb; }
125
- .coverage-summary td:last-child { border-right: none; }
126
- .coverage-summary th {
127
- text-align: left;
128
- font-weight: normal;
129
- white-space: nowrap;
130
- }
131
- .coverage-summary th.file { border-right: none !important; }
132
- .coverage-summary th.pct { }
133
- .coverage-summary th.pic,
134
- .coverage-summary th.abs,
135
- .coverage-summary td.pct,
136
- .coverage-summary td.abs { text-align: right; }
137
- .coverage-summary td.file { white-space: nowrap; }
138
- .coverage-summary td.pic { min-width: 120px !important; }
139
- .coverage-summary tfoot td { }
140
-
141
- .coverage-summary .sorter {
142
- height: 10px;
143
- width: 7px;
144
- display: inline-block;
145
- margin-left: 0.5em;
146
- background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent;
147
- }
148
- .coverage-summary .sorted .sorter {
149
- background-position: 0 -20px;
150
- }
151
- .coverage-summary .sorted-desc .sorter {
152
- background-position: 0 -10px;
153
- }
154
- .status-line { height: 10px; }
155
- /* yellow */
156
- .cbranch-no { background: yellow !important; color: #111; }
157
- /* dark red */
158
- .red.solid, .status-line.low, .low .cover-fill { background:#C21F39 }
159
- .low .chart { border:1px solid #C21F39 }
160
- .highlighted,
161
- .highlighted .cstat-no, .highlighted .fstat-no, .highlighted .cbranch-no{
162
- background: #C21F39 !important;
163
- }
164
- /* medium red */
165
- .cstat-no, .fstat-no, .cbranch-no, .cbranch-no { background:#F6C6CE }
166
- /* light red */
167
- .low, .cline-no { background:#FCE1E5 }
168
- /* light green */
169
- .high, .cline-yes { background:rgb(230,245,208) }
170
- /* medium green */
171
- .cstat-yes { background:rgb(161,215,106) }
172
- /* dark green */
173
- .status-line.high, .high .cover-fill { background:rgb(77,146,33) }
174
- .high .chart { border:1px solid rgb(77,146,33) }
175
- /* dark yellow (gold) */
176
- .status-line.medium, .medium .cover-fill { background: #f9cd0b; }
177
- .medium .chart { border:1px solid #f9cd0b; }
178
- /* light yellow */
179
- .medium { background: #fff4c2; }
180
-
181
- .cstat-skip { background: #ddd; color: #111; }
182
- .fstat-skip { background: #ddd; color: #111 !important; }
183
- .cbranch-skip { background: #ddd !important; color: #111; }
184
-
185
- span.cline-neutral { background: #eaeaea; }
186
-
187
- .coverage-summary td.empty {
188
- opacity: .5;
189
- padding-top: 4px;
190
- padding-bottom: 4px;
191
- line-height: 1;
192
- color: #888;
193
- }
194
-
195
- .cover-fill, .cover-empty {
196
- display:inline-block;
197
- height: 12px;
198
- }
199
- .chart {
200
- line-height: 0;
201
- }
202
- .cover-empty {
203
- background: white;
204
- }
205
- .cover-full {
206
- border-right: none !important;
207
- }
208
- pre.prettyprint {
209
- border: none !important;
210
- padding: 0 !important;
211
- margin: 0 !important;
212
- }
213
- .com { color: #999 !important; }
214
- .ignore-none { color: #999; font-weight: normal; }
215
-
216
- .wrapper {
217
- min-height: 100%;
218
- height: auto !important;
219
- height: 100%;
220
- margin: 0 auto -48px;
221
- }
222
- .footer, .push {
223
- height: 48px;
224
- }