coredns / coredns
Showing 1 of 2 files from the diff.
Other files ignored by Codecov

@@ -20,10 +20,14 @@
Loading
20 20
	d := Dnstap{}
21 21
	endpoint := ""
22 22
23 -
	if !c.Args(&endpoint) {
23 +
	args := c.RemainingArgs()
24 +
25 +
	if len(args) == 0 {
24 26
		return d, c.ArgErr()
25 27
	}
26 28
29 +
	endpoint = args[0]
30 +
27 31
	if strings.HasPrefix(endpoint, "tcp://") {
28 32
		// remote network endpoint
29 33
		endpointURL, err := url.Parse(endpoint)
@@ -38,21 +42,23 @@
Loading
38 42
		d = Dnstap{io: dio}
39 43
	}
40 44
41 -
	d.IncludeRawMessage = c.NextArg() && c.Val() == "full"
42 -
	
43 -
	hostname, _ := os.Hostname() 
45 +
	d.IncludeRawMessage = len(args) == 2 && args[1] == "full"
46 +
47 +
	hostname, _ := os.Hostname()
44 48
	d.Identity = []byte(hostname)
45 49
	d.Version = []byte(caddy.AppName + "-" + caddy.AppVersion)
46 -
	
50 +
47 51
	for c.NextBlock() {
48 52
		switch c.Val() {
49 -
			case "identity": {
53 +
		case "identity":
54 +
			{
50 55
				if !c.NextArg() {
51 56
					return d, c.ArgErr()
52 57
				}
53 58
				d.Identity = []byte(c.Val())
54 59
			}
55 -
			case "version": {
60 +
		case "version":
61 +
			{
56 62
				if !c.NextArg() {
57 63
					return d, c.ArgErr()
58 64
				}
Files Coverage
core/dnsserver 31.68%
plugin 58.73%
request 32.79%
test/server.go 88.57%
Project Totals (239 files) 57.10%
Notifications are pending CI completion. Waiting for GitHub's status webhook to queue notifications. Push notifications now.
1
coverage:
2
  status:
3
    project:
4
      default:
5
        target: 50%
6
        threshold: null
7
    patch: false
8
    changes: false
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading