Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 712 for removeable (0.2 sec)

  1. pkg/kubelet/pluginmanager/pluginwatcher/plugin_watcher_test.go

    	flag.StringVar(&logLevel, "logLevel", "6", "test")
    	flag.Lookup("v").Value.Set(logLevel)
    }
    
    func initTempDir(t *testing.T) string {
    	// Creating a different directory. os.RemoveAll is not atomic enough;
    	// os.MkdirAll can get into an "Access Denied" error on Windows.
    	d, err := os.MkdirTemp("", "plugin_test")
    	if err != nil {
    		t.Fatalf("Could not create a temp directory %s: %v", d, err)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 04 06:56:50 UTC 2023
    - 8K bytes
    - Viewed (0)
  2. pkg/volume/csi/csi_block_test.go

    	}
    	csiMapper := mapper.(*csiBlockMapper)
    	return csiMapper, spec, pv, nil
    }
    
    func TestBlockMapperGetGlobalMapPath(t *testing.T) {
    	plug, tmpDir := newTestPlugin(t, nil)
    	defer os.RemoveAll(tmpDir)
    
    	// TODO (vladimirvivien) specName with slashes will not work
    	testCases := []struct {
    		name           string
    		specVolumeName string
    		path           string
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 11 06:07:40 UTC 2023
    - 26.5K bytes
    - Viewed (0)
  3. pkg/kubelet/logs/container_log_manager_test.go

    	critest "k8s.io/cri-api/pkg/apis/testing"
    	testingclock "k8s.io/utils/clock/testing"
    )
    
    func TestGetAllLogs(t *testing.T) {
    	dir, err := os.MkdirTemp("", "test-get-all-logs")
    	require.NoError(t, err)
    	defer os.RemoveAll(dir)
    	testLogs := []string{
    		"test-log.11111111-111111.gz",
    		"test-log",
    		"test-log.00000000-000000.gz",
    		"test-log.19900322-000000.gz",
    		"test-log.19900322-111111.gz",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  4. pkg/volume/util/hostutil/hostutil_linux_test.go

    `
    	tempDir, filename, err := writeFile(successMountInfo)
    	if err != nil {
    		t.Fatalf("cannot create temporary file: %v", err)
    	}
    	defer os.RemoveAll(tempDir)
    
    	tests := []struct {
    		name           string
    		path           string
    		expectedResult bool
    	}{
    		{
    			// /var/lib/kubelet is a directory on mount '/' that is shared
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 14:49:03 UTC 2023
    - 8K bytes
    - Viewed (0)
  5. src/os/removeall_at.go

    	"internal/syscall/unix"
    	"io"
    	"syscall"
    )
    
    func removeAll(path string) error {
    	if path == "" {
    		// fail silently to retain compatibility with previous behavior
    		// of RemoveAll. See issue 28830.
    		return nil
    	}
    
    	// The rmdir system call does not permit removing ".",
    	// so we don't permit it either.
    	if endsWithDot(path) {
    		return &PathError{Op: "RemoveAll", Path: path, Err: syscall.EINVAL}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:09:26 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. pkg/util/filesystem/defaultfs.go

    // Chtimes via os.Chtimes
    func (fs *DefaultFs) Chtimes(name string, atime time.Time, mtime time.Time) error {
    	return os.Chtimes(fs.prefix(name), atime, mtime)
    }
    
    // RemoveAll via os.RemoveAll
    func (fs *DefaultFs) RemoveAll(path string) error {
    	return os.RemoveAll(fs.prefix(path))
    }
    
    // Remove via os.Remove
    func (fs *DefaultFs) Remove(name string) error {
    	return os.Remove(fs.prefix(name))
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 03 07:38:14 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  7. platforms/core-configuration/input-tracking/src/test/groovy/org/gradle/internal/configuration/inputs/AccessTrackingPropertiesTest.groovy

            then:
            thrown(NullPointerException)
            0 * onAccess._
            0 * onChange._
            0 * onRemove._
        }
    
        def "keySet().removeAll([null]) is not tracked and throws"() {
            when:
            getMapUnderTestToWrite().keySet().removeAll([null])
    
            then:
            thrown(NullPointerException)
            0 * onAccess._
            0 * onChange._
            0 * onRemove._
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Nov 11 00:37:04 UTC 2023
    - 23.1K bytes
    - Viewed (0)
  8. src/os/tempfile_test.go

    	"regexp"
    	"strings"
    	"testing"
    )
    
    func TestCreateTemp(t *testing.T) {
    	t.Parallel()
    
    	dir, err := MkdirTemp("", "TestCreateTempBadDir")
    	if err != nil {
    		t.Fatal(err)
    	}
    	defer RemoveAll(dir)
    
    	nonexistentDir := filepath.Join(dir, "_not_exists_")
    	f, err := CreateTemp(nonexistentDir, "foo")
    	if f != nil || err == nil {
    		t.Errorf("CreateTemp(%q, `foo`) = %v, %v", nonexistentDir, f, err)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 19 20:45:37 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ForwardingSetMultimap.java

      }
    
      @Override
      public Set<V> get(@ParametricNullness K key) {
        return delegate().get(key);
      }
    
      @CanIgnoreReturnValue
      @Override
      public Set<V> removeAll(@CheckForNull Object key) {
        return delegate().removeAll(key);
      }
    
      @CanIgnoreReturnValue
      @Override
      public Set<V> replaceValues(@ParametricNullness K key, Iterable<? extends V> values) {
        return delegate().replaceValues(key, values);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 15 21:08:00 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ForwardingListMultimap.java

      @Override
      public List<V> get(@ParametricNullness K key) {
        return delegate().get(key);
      }
    
      @CanIgnoreReturnValue
      @Override
      public List<V> removeAll(@CheckForNull Object key) {
        return delegate().removeAll(key);
      }
    
      @CanIgnoreReturnValue
      @Override
      public List<V> replaceValues(@ParametricNullness K key, Iterable<? extends V> values) {
        return delegate().replaceValues(key, values);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 15 21:08:00 UTC 2021
    - 2.2K bytes
    - Viewed (0)
Back to top