github.com/ydb-platform/ydb-go-sdk/v3@v3.57.0/testutil/file_line.go (about)

     1  package testutil
     2  
     3  import (
     4  	"path/filepath"
     5  	"runtime"
     6  	"strconv"
     7  )
     8  
     9  func FileLine(skip int) string {
    10  	_, file, line, _ := runtime.Caller(skip)
    11  
    12  	return filepath.Base(file) + ":" + strconv.Itoa(line)
    13  }