// Stat returns the [FileInfo] structure describing file. // If there is an error, it will be of type [*PathError]. func (f *File) Stat() (FileInfo, error) { … } // statNolog stats a file with no test logging. func statNolog(name string) (FileInfo, error) { … } // lstatNolog lstats a file with no test logging. func lstatNolog(name string) (FileInfo, error) { … }