...

Source file src/cmd/cover/testdata/p.go

Documentation: cmd/cover/testdata

     1  // Copyright 2017 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // A package such that there are 3 functions with zero total and covered lines.
     6  // And one with 1 total and covered lines. Reproduces issue #20515.
     7  package p
     8  
     9  //go:noinline
    10  func A() {
    11  
    12  }
    13  
    14  //go:noinline
    15  func B() {
    16  
    17  }
    18  
    19  //go:noinline
    20  func C() {
    21  
    22  }
    23  
    24  //go:noinline
    25  func D() int64 {
    26  	return 42
    27  }
    28  

View as plain text