Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestFileInfoHeaderUseFileInfoNames (0.12 sec)

  1. src/archive/tar/tar_test.go

    	return nil
    }
    
    func (f *fileInfoNames) Uname() (string, error) {
    	return "Uname", nil
    }
    
    func (f *fileInfoNames) Gname() (string, error) {
    	return "Gname", nil
    }
    
    func TestFileInfoHeaderUseFileInfoNames(t *testing.T) {
    	info := &fileInfoNames{}
    	header, err := FileInfoHeader(info, "")
    	if err != nil {
    		t.Fatal(err)
    	}
    	if header.Uname != "Uname" {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Jul 25 00:25:45 UTC 2024
    - 23.9K bytes
    - Viewed (0)
Back to top