forked from gabrielcsapo/lcov-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
covera.bak
461 lines (364 loc) · 11.4 KB
/
covera.bak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
--
-- PostgreSQL database dump
--
-- Dumped from database version 12.2
-- Dumped by pg_dump version 12.2
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;
--
-- Name: citype; Type: TYPE; Schema: public; Owner: covera
--
CREATE TYPE public.citype AS ENUM (
'travis-ci',
'drone',
'jenkins',
'circleci',
'codeship',
'wercker',
'gitlab-ci',
'appveyor',
'surf'
);
ALTER TYPE public.citype OWNER TO covera;
SET default_tablespace = '';
SET default_table_access_method = heap;
--
-- Name: file; Type: TABLE; Schema: public; Owner: covera
--
CREATE TABLE public.file (
gid bigint NOT NULL,
pid bigint,
pat text NOT NULL
);
ALTER TABLE public.file OWNER TO covera;
--
-- Name: func_cov; Type: TABLE; Schema: public; Owner: covera
--
CREATE TABLE public.func_cov (
fid bigint NOT NULL,
rid bigint NOT NULL,
sln smallint,
eln smallint,
fna text NOT NULL,
hit integer NOT NULL,
bct smallint,
bex smallint
);
ALTER TABLE public.func_cov OWNER TO covera;
--
-- Name: line_cov; Type: TABLE; Schema: public; Owner: covera
--
CREATE TABLE public.line_cov (
fid bigint NOT NULL,
rid bigint NOT NULL,
lno smallint NOT NULL,
hit smallint NOT NULL,
bct smallint,
bex smallint
);
ALTER TABLE public.line_cov OWNER TO covera;
--
-- Name: migration_ctrl; Type: TABLE; Schema: public; Owner: covera
--
CREATE TABLE public.migration_ctrl (
id smallint NOT NULL,
v integer
);
ALTER TABLE public.migration_ctrl OWNER TO covera;
--
-- Name: project; Type: TABLE; Schema: public; Owner: covera
--
CREATE TABLE public.project (
gid bigint NOT NULL,
rep text NOT NULL
);
ALTER TABLE public.project OWNER TO covera;
--
-- Name: report; Type: TABLE; Schema: public; Owner: covera
--
CREATE TABLE public.report (
gid bigint NOT NULL,
pid bigint NOT NULL,
com character(40) NOT NULL,
bra text NOT NULL,
rat timestamp without time zone NOT NULL,
ci public.citype,
job text,
prq text,
bct bigint NOT NULL,
bex bigint NOT NULL
);
ALTER TABLE public.report OWNER TO covera;
--
-- Data for Name: file; Type: TABLE DATA; Schema: public; Owner: covera
--
COPY public.file (gid, pid, pat) FROM stdin;
1948402487 1130822612 main.cc
1187163942 1130822612 print.cc
1077064397 1130822612 print/print.cc
\.
--
-- Data for Name: func_cov; Type: TABLE DATA; Schema: public; Owner: covera
--
COPY public.func_cov (fid, rid, sln, eln, fna, hit, bct, bex) FROM stdin;
1948402487 1090972268 12 30 say_hello(Mood, int) 0 18 0
1948402487 1090972268 32 40 main 1 8 8
1948402487 1324463119 12 30 say_hello(Mood, int) 0 18 0
1948402487 1324463119 32 40 main 1 8 8
1948402487 299570093 12 30 say_hello(Mood, int) 0 18 0
1948402487 299570093 32 40 main 1 8 8
1187163942 2070030976 2 7 print(int) 6 6 5
1948402487 2070030976 12 30 say_hello(Mood, int) 0 18 0
1948402487 2070030976 32 40 main 1 8 8
1077064397 1552355191 2 7 print(int) 6 6 5
1948402487 1552355191 12 30 say_hello(Mood, int) 0 18 0
1948402487 1552355191 32 40 main 1 8 8
\.
--
-- Data for Name: line_cov; Type: TABLE DATA; Schema: public; Owner: covera
--
COPY public.line_cov (fid, rid, lno, hit, bct, bex) FROM stdin;
1948402487 1090972268 12 0 1 0
1948402487 1090972268 13 0 8 0
1948402487 1090972268 14 0 1 0
1948402487 1090972268 16 0 4 0
1948402487 1090972268 17 0 1 0
1948402487 1090972268 18 0 1 0
1948402487 1090972268 19 0 1 0
1948402487 1090972268 20 0 1 0
1948402487 1090972268 21 0 1 0
1948402487 1090972268 22 0 1 0
1948402487 1090972268 23 0 1 0
1948402487 1090972268 24 0 1 0
1948402487 1090972268 25 0 1 0
1948402487 1090972268 26 0 1 0
1948402487 1090972268 27 0 1 0
1948402487 1090972268 28 0 1 0
1948402487 1090972268 30 0 1 0
1948402487 1090972268 32 1 1 1
1948402487 1090972268 33 1 1 1
1948402487 1090972268 34 1 1 1
1948402487 1090972268 35 1 1 1
1948402487 1090972268 36 1 1 1
1948402487 1090972268 37 1 1 1
1948402487 1090972268 38 1 1 1
1948402487 1090972268 39 1 1 1
1948402487 1324463119 12 0 1 0
1948402487 1324463119 13 0 8 0
1948402487 1324463119 14 0 1 0
1948402487 1324463119 16 0 4 0
1948402487 1324463119 17 0 1 0
1948402487 1324463119 18 0 1 0
1948402487 1324463119 19 0 1 0
1948402487 1324463119 20 0 1 0
1948402487 1324463119 21 0 1 0
1948402487 1324463119 22 0 1 0
1948402487 1324463119 23 0 1 0
1948402487 1324463119 24 0 1 0
1948402487 1324463119 25 0 1 0
1948402487 1324463119 26 0 1 0
1948402487 1324463119 27 0 1 0
1948402487 1324463119 28 0 1 0
1948402487 1324463119 30 0 1 0
1948402487 1324463119 32 1 1 1
1948402487 1324463119 33 1 1 1
1948402487 1324463119 34 1 1 1
1948402487 1324463119 35 1 1 1
1948402487 1324463119 36 1 1 1
1948402487 1324463119 37 1 1 1
1948402487 1324463119 38 1 1 1
1948402487 1324463119 39 1 1 1
1948402487 299570093 12 0 1 0
1948402487 299570093 13 0 8 0
1948402487 299570093 14 0 1 0
1948402487 299570093 16 0 4 0
1948402487 299570093 17 0 1 0
1948402487 299570093 18 0 1 0
1948402487 299570093 19 0 1 0
1948402487 299570093 20 0 1 0
1948402487 299570093 21 0 1 0
1948402487 299570093 22 0 1 0
1948402487 299570093 23 0 1 0
1948402487 299570093 24 0 1 0
1948402487 299570093 25 0 1 0
1948402487 299570093 26 0 1 0
1948402487 299570093 27 0 1 0
1948402487 299570093 28 0 1 0
1948402487 299570093 30 0 1 0
1948402487 299570093 32 1 1 1
1948402487 299570093 33 1 1 1
1948402487 299570093 34 1 1 1
1948402487 299570093 35 1 1 1
1948402487 299570093 36 1 1 1
1948402487 299570093 37 1 1 1
1948402487 299570093 38 1 1 1
1948402487 299570093 39 1 1 1
1187163942 2070030976 2 6 1 1
1187163942 2070030976 3 6 2 6
1187163942 2070030976 4 0 1 0
1187163942 2070030976 5 6 1 1
1187163942 2070030976 6 6 1 1
1948402487 2070030976 12 0 1 0
1948402487 2070030976 13 0 8 0
1948402487 2070030976 14 0 1 0
1948402487 2070030976 16 0 4 0
1948402487 2070030976 17 0 1 0
1948402487 2070030976 18 0 1 0
1948402487 2070030976 19 0 1 0
1948402487 2070030976 20 0 1 0
1948402487 2070030976 21 0 1 0
1948402487 2070030976 22 0 1 0
1948402487 2070030976 23 0 1 0
1948402487 2070030976 24 0 1 0
1948402487 2070030976 25 0 1 0
1948402487 2070030976 26 0 1 0
1948402487 2070030976 27 0 1 0
1948402487 2070030976 28 0 1 0
1948402487 2070030976 30 0 1 0
1948402487 2070030976 32 1 1 1
1948402487 2070030976 33 1 1 1
1948402487 2070030976 34 1 1 1
1948402487 2070030976 35 1 1 1
1948402487 2070030976 36 1 1 1
1948402487 2070030976 37 1 1 1
1948402487 2070030976 38 1 1 1
1948402487 2070030976 39 1 1 1
1077064397 1552355191 2 6 1 1
1077064397 1552355191 3 6 2 1
1077064397 1552355191 4 0 1 0
1077064397 1552355191 5 6 1 1
1077064397 1552355191 6 6 1 1
1948402487 1552355191 12 0 1 0
1948402487 1552355191 13 0 8 0
1948402487 1552355191 14 0 1 0
1948402487 1552355191 16 0 4 0
1948402487 1552355191 17 0 1 0
1948402487 1552355191 18 0 1 0
1948402487 1552355191 19 0 1 0
1948402487 1552355191 20 0 1 0
1948402487 1552355191 21 0 1 0
1948402487 1552355191 22 0 1 0
1948402487 1552355191 23 0 1 0
1948402487 1552355191 24 0 1 0
1948402487 1552355191 25 0 1 0
1948402487 1552355191 26 0 1 0
1948402487 1552355191 27 0 1 0
1948402487 1552355191 28 0 1 0
1948402487 1552355191 30 0 1 0
1948402487 1552355191 32 1 1 1
1948402487 1552355191 33 1 1 1
1948402487 1552355191 34 1 1 1
1948402487 1552355191 35 1 1 1
1948402487 1552355191 36 1 1 1
1948402487 1552355191 37 1 1 1
1948402487 1552355191 38 1 1 1
1948402487 1552355191 39 1 1 1
\.
--
-- Data for Name: migration_ctrl; Type: TABLE DATA; Schema: public; Owner: covera
--
COPY public.migration_ctrl (id, v) FROM stdin;
1 2
\.
--
-- Data for Name: project; Type: TABLE DATA; Schema: public; Owner: covera
--
COPY public.project (gid, rep) FROM stdin;
1130822612 gabriel-araujo/coverage-example-c
\.
--
-- Data for Name: report; Type: TABLE DATA; Schema: public; Owner: covera
--
COPY public.report (gid, pid, com, bra, rat, ci, job, prq, bct, bex) FROM stdin;
1324463119 1130822612 357549df4b30ee3d69f19b2ee583bd52c51d6368 master 2020-02-07 22:13:17.68 \N \N \N 35 8
1090972268 1130822612 9d142243d7b6f85cf0967a316c84f218fe0e47fa master 2020-02-06 00:53:41.924 \N \N \N 35 8
299570093 1130822612 170c4e3b6b7c87a7deaa8f77440120407b8b294f master 2020-02-07 22:20:34.612 \N \N \N 35 8
2070030976 1130822612 c70deb5d452d2405ae7cb4cca0209d7dd2ec043a other_branch 2020-03-07 00:45:04.748 \N \N \N 41 17
1552355191 1130822612 347b4c21097103ecf74f795b3629724d791350df complex-branch 2020-03-08 16:49:08.823 \N \N \N 41 12
\.
--
-- Name: file file_pkey; Type: CONSTRAINT; Schema: public; Owner: covera
--
ALTER TABLE ONLY public.file
ADD CONSTRAINT file_pkey PRIMARY KEY (gid);
--
-- Name: line_cov line_cov_pkey; Type: CONSTRAINT; Schema: public; Owner: covera
--
ALTER TABLE ONLY public.line_cov
ADD CONSTRAINT line_cov_pkey PRIMARY KEY (fid, rid, lno);
--
-- Name: migration_ctrl migration_ctrl_pkey; Type: CONSTRAINT; Schema: public; Owner: covera
--
ALTER TABLE ONLY public.migration_ctrl
ADD CONSTRAINT migration_ctrl_pkey PRIMARY KEY (id);
--
-- Name: project project_pkey; Type: CONSTRAINT; Schema: public; Owner: covera
--
ALTER TABLE ONLY public.project
ADD CONSTRAINT project_pkey PRIMARY KEY (gid);
--
-- Name: project project_rep_key; Type: CONSTRAINT; Schema: public; Owner: covera
--
ALTER TABLE ONLY public.project
ADD CONSTRAINT project_rep_key UNIQUE (rep);
--
-- Name: report report_pkey; Type: CONSTRAINT; Schema: public; Owner: covera
--
ALTER TABLE ONLY public.report
ADD CONSTRAINT report_pkey PRIMARY KEY (gid);
--
-- Name: report uinique_commit; Type: CONSTRAINT; Schema: public; Owner: covera
--
ALTER TABLE ONLY public.report
ADD CONSTRAINT uinique_commit UNIQUE (pid, com);
--
-- Name: func_cov unique_fn; Type: CONSTRAINT; Schema: public; Owner: covera
--
ALTER TABLE ONLY public.func_cov
ADD CONSTRAINT unique_fn UNIQUE (fid, rid, sln, fna);
--
-- Name: file unique_path; Type: CONSTRAINT; Schema: public; Owner: covera
--
ALTER TABLE ONLY public.file
ADD CONSTRAINT unique_path UNIQUE (pid, pat);
--
-- Name: file file_pid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: covera
--
ALTER TABLE ONLY public.file
ADD CONSTRAINT file_pid_fkey FOREIGN KEY (pid) REFERENCES public.project(gid) ON DELETE CASCADE;
--
-- Name: func_cov func_cov_fid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: covera
--
ALTER TABLE ONLY public.func_cov
ADD CONSTRAINT func_cov_fid_fkey FOREIGN KEY (fid) REFERENCES public.file(gid) ON DELETE CASCADE;
--
-- Name: func_cov func_cov_rid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: covera
--
ALTER TABLE ONLY public.func_cov
ADD CONSTRAINT func_cov_rid_fkey FOREIGN KEY (rid) REFERENCES public.report(gid) ON DELETE CASCADE;
--
-- Name: line_cov line_cov_fid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: covera
--
ALTER TABLE ONLY public.line_cov
ADD CONSTRAINT line_cov_fid_fkey FOREIGN KEY (fid) REFERENCES public.file(gid) ON DELETE CASCADE;
--
-- Name: line_cov line_cov_rid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: covera
--
ALTER TABLE ONLY public.line_cov
ADD CONSTRAINT line_cov_rid_fkey FOREIGN KEY (rid) REFERENCES public.report(gid) ON DELETE CASCADE;
--
-- Name: report report_pid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: covera
--
ALTER TABLE ONLY public.report
ADD CONSTRAINT report_pid_fkey FOREIGN KEY (pid) REFERENCES public.project(gid) ON DELETE CASCADE;
--
-- PostgreSQL database dump complete
--