github.com/google/capslock@v0.2.3-0.20240517042941-dac19fc347c0/testpkgs/callruntime/callruntime.go (about) 1 // Copyright 2023 Google LLC 2 // 3 // Use of this source code is governed by a BSD-style 4 // license that can be found in the LICENSE file or at 5 // https://developers.google.com/open-source/licenses/bsd 6 7 // Package callruntime is used for testing. 8 package callruntime 9 10 import ( 11 "runtime" 12 ) 13 14 // Interesting is used for testing. 15 func Interesting() int { 16 return len(runtime.CPUProfile()) 17 } 18 19 // Uninteresting is used for testing. 20 func Uninteresting() int { 21 var f runtime.Func 22 return len(f.Name()) 23 }