Showing 1 of 2 files from the diff.
Other files ignored by Codecov
fortio_main.go has changed.

@@ -167,6 +167,9 @@
Loading
167 167
	FollowRedirects   bool // For the Std Client only: follow redirects.
168 168
	initDone          bool
169 169
	https             bool   // whether URLSchemeCheck determined this was an https:// call or not
170 +
	Cacert            string // `Path` to a custom CA certificate file to be used
171 +
	Cert              string // `Path` to the certificate file to be used
172 +
	Key               string // `Path` to the key file used
170 173
	Resolve           string // resolve Common Name to this ip when use CN as target url
171 174
	// ExtraHeaders to be added to each request (UserAgent and headers set through AddAndValidateExtraHeader()).
172 175
	extraHeaders http.Header
@@ -390,9 +393,20 @@
Loading
390 393
		},
391 394
		TLSHandshakeTimeout: o.HTTPReqTimeOut,
392 395
	}
393 -
	if o.Insecure && o.https {
394 -
		log.LogVf("using insecure https")
395 -
		tr.TLSClientConfig = &tls.Config{InsecureSkipVerify: true} // nolint: gosec // only in Insecure mode
396 +
	if o.https { // nolint: nestif // fine for now
397 +
		tr.TLSClientConfig = &tls.Config{MinVersion: tls.VersionTLS12}
398 +
		if o.Insecure {
399 +
			log.LogVf("Using insecure https")
400 +
			tr.TLSClientConfig.InsecureSkipVerify = true
401 +
		}
402 +
		if len(o.Cert) > 0 && len(o.Key) > 0 {
403 +
			cert, err := tls.LoadX509KeyPair(o.Cert, o.Key)
404 +
			if err != nil {
405 +
				log.Errf(fmt.Sprintf("%v", err))
406 +
			} else {
407 +
				tr.TLSClientConfig.Certificates = []tls.Certificate{cert}
408 +
			}
409 +
		}
396 410
	}
397 411
	client := Client{
398 412
		url: o.URL,
Files Coverage
dflag 82.2%
fgrpc 87.9%
fhttp 84.2%
fnet/network.go 86.9%
log/logger.go 86.7%
periodic/periodic.go 96.9%
stats/stats.go 96.5%
tcprunner/tcprunner.go 70.2%
Project Totals (25 files) 86.2%
1
coverage:
2
  range: 60..99
3
  precision: 1         # how many decimal places to display in the UI: 0 <= value <= 4
4
  round: nearest       # how coverage is rounded: down/up/nearest
5
  ignore:              # files and folders that will be removed during processing
6
    - "**.pb.go"
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