Repos / gocov/gocov-action / 5dc8264f2414 / github.com/gocov/gocov-action/selftest/selftest.go

github.com/gocov/gocov-action/selftest/selftest.go

3 of 4 statements covered · → +0.0% · commit 5dc8264f2414

File coverage
75.0%
1 uncovered line in 1 block
12 lines, fully covered · expand
1
// Package selftest is a minimal Go package whose only job is to produce a
2
// real coverage profile for this repo's CI, which uploads it with the
3
// action itself (dogfooding: a live integration test against the hosted
4
// service on every push).
5
package selftest
6
7
// Greeting returns a per-language greeting, defaulting to English.
8
func Greeting(lang string) string {
9
	switch lang {
10
	case "tr":
11
		return "merhaba"
12
	case "de":
13
		return "hallo"
14
	default:
15
		return "hello"
16
	}
17
}
Executed, with hit count Never executed Not a statement The rail maps all 17 lines of the file.