Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestIsUnixDomainSocket (0.21 sec)

  1. pkg/util/filesystem/util_test.go

    limitations under the License.
    */
    
    package filesystem
    
    import (
    	"net"
    	"os"
    	"runtime"
    	"testing"
    
    	"github.com/stretchr/testify/assert"
    	"github.com/stretchr/testify/require"
    )
    
    func TestIsUnixDomainSocket(t *testing.T) {
    	tests := []struct {
    		label          string
    		listenOnSocket bool
    		expectSocket   bool
    		expectError    bool
    		invalidFile    bool
    	}{
    		{
    			label:          "Domain Socket file",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 10 17:13:59 UTC 2024
    - 3.8K bytes
    - Viewed (0)
Back to top