Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestWriterAddFSNonRegularFiles (0.76 sec)

  1. src/archive/tar/writer_test.go

    				t.Fatalf("test fs has file content %v; archive header has %v", origdata, data)
    			}
    		}
    	}
    	if entriesLeft > 0 {
    		t.Fatalf("not all entries are in the archive")
    	}
    }
    
    func TestWriterAddFSNonRegularFiles(t *testing.T) {
    	fsys := fstest.MapFS{
    		"device":  {Data: []byte("hello"), Mode: 0755 | fs.ModeDevice},
    		"symlink": {Data: []byte("world"), Mode: 0755 | fs.ModeSymlink},
    	}
    	var buf bytes.Buffer
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Feb 03 16:38:43 UTC 2025
    - 39.8K bytes
    - Viewed (0)
Back to top