github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/internal/coverage/pkid.go (about)

     1  // Copyright 2022 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  package coverage
     6  
     7  // NotHardCoded is a package pseudo-ID indicating that a given package
     8  // is not part of the runtime and doesn't require a hard-coded ID.
     9  const NotHardCoded = -1
    10  
    11  // HardCodedPkgID returns the hard-coded ID for the specified package
    12  // path, or -1 if we don't use a hard-coded ID. Hard-coded IDs start
    13  // at -2 and decrease as we go down the list.
    14  func HardCodedPkgID(pkgpath string) int