Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestReadDirFail (0.26 sec)

  1. cmd/os-readdir_test.go

    package cmd
    
    import (
    	"fmt"
    	"os"
    	"path"
    	"path/filepath"
    	"runtime"
    	"sort"
    	"testing"
    )
    
    // Test to check for different input arguments.
    func TestReadDirFail(t *testing.T) {
    	// Check non existent directory.
    	if _, err := readDir("/tmp/non-existent-directory"); err != errFileNotFound {
    		t.Fatalf("expected = %s, got: %s", errFileNotFound, err)
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 7.5K bytes
    - Viewed (0)
Back to top