github
0 of 1 new or added line in 1 file covered. (0.0%)
20 existing lines in 3 files now uncovered.2101 of 4119 relevant lines covered (51.01%)
4.95 hits per line
1 |
package model
|
|
2 |
|
|
3 |
// NewDatabase creates a new database mode with th given name
|
|
UNCOV
4
|
func NewDatabase(n string) Database { |
× |
UNCOV
5
|
return &database{
|
× |
UNCOV
6
|
name: n, |
× |
UNCOV
7
|
} |
× |
UNCOV
8
|
} |
× |
9 |
|
|
10 |
func (d *database) isDatabase() bool { |
× |
11 |
return true |
× |
12 |
} |
× |
13 |
|
|
14 |
func (d *database) ID() string { |
× |
15 |
return "database#" + d.name |
× |
16 |
} |
× |
17 |
|
|
18 |
func (d *database) Name() string { |
× |
19 |
return d.name
|
× |
20 |
} |
× |
21 |
|
|
22 |
func (d *database) IsIfNotExists() bool { |
× |
23 |
return d.ifnotexists
|
× |
24 |
} |
× |
25 |
|
|
26 |
func (d *database) SetIfNotExists(v bool) Database { |
× |
27 |
d.ifnotexists = v |
× |
28 |
return d
|
× |
29 |
} |
× |