Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestAbsWithSlash (0.13 sec)

  1. pkg/util/filesystem/util_windows_test.go

    	unixln, err := net.ListenUnix("unix", ta)
    	require.NoError(t, err, "Failed to ListenUnix.")
    
    	// Wait for the goroutine to finish, then close the socket
    	wg.Wait()
    	unixln.Close()
    }
    
    func TestAbsWithSlash(t *testing.T) {
    	// On Windows, filepath.IsAbs will not return True for paths prefixed with a slash
    	assert.True(t, IsAbs("/test"))
    	assert.True(t, IsAbs("\\test"))
    
    	assert.False(t, IsAbs("./local"))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 09:10:26 UTC 2024
    - 3.2K bytes
    - Viewed (0)
Back to top