- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 285 for removeable (0.17 sec)
-
src/cmd/compile/internal/ssa/value.go
return v.Op == OpVarDef || v.Op == OpVarLive || v.Op == OpPhi || (v.Op == OpFwdRef || v.Op == OpCopy) && v.Type == types.TypeMem } // removeable reports whether the value v can be removed from the SSA graph entirely // if its use count drops to 0. func (v *Value) removeable() bool { if v.Type.IsVoid() { // Void ops (inline marks), must stay. return false } if opcodeTable[v.Op].nilCheck {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 16:40:22 UTC 2024 - 16.7K bytes - Viewed (0) -
src/cmd/go/internal/clean/clean.go
sh.ShowCmd("", "rm -f %s", p.Target) } if !cfg.BuildN { removeFile(p.Target) } } if cleanR { for _, p1 := range p.Internal.Imports { clean(p1) } } } // removeFile tries to remove file f, if error other than file doesn't exist // occurs, it will report the error. func removeFile(f string) { err := os.Remove(f) if err == nil || os.IsNotExist(err) { return
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 10.3K bytes - Viewed (0) -
platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/rules/AbstractDependencyMetadataRulesIntegrationTest.groovy
} } class RemoveRule implements ComponentMetadataRule { void execute(ComponentMetadataContext context) { context.details.withVariant("$variantToTest") { with${toCamelCase(thing)} { d -> assert d.size() == 1 d.removeAll { true } } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 10 21:10:11 UTC 2023 - 36.5K bytes - Viewed (0) -
src/os/removeall_test.go
t.Fatalf("Lstat %q succeeded after partial RemoveAll", s) } } } if err = RemoveAll(path); err != nil { t.Fatalf("RemoveAll %q after partial RemoveAll: %s", path, err) } if _, err = Lstat(path); err == nil { t.Fatalf("Lstat %q succeeded after RemoveAll (final)", path) } } // Test RemoveAll on a large directory. func TestRemoveAllLarge(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:21:29 UTC 2024 - 12.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/testing/testcase.go
ExpectAnnotations: map[string]string{ "removelabel.example.com/key1": "value1", "mutation.webhook.admission.k8s.io/round_0_index_0": mutationAnnotationValue(configurationName, "removelabel.example.com", true), "patch.webhook.admission.k8s.io/round_0_index_0": patchAnnotationValue(configurationName, "removelabel.example.com", `[{"op": "remove", "path": "/metadata/labels/remove"}]`), },
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 03 06:51:04 UTC 2023 - 47.6K bytes - Viewed (0) -
pkg/volume/local/local_test.go
} func TestCanSupport(t *testing.T) { tmpDir, plug := getPlugin(t) defer os.RemoveAll(tmpDir) if !plug.CanSupport(getTestVolume(false, tmpDir, false, nil)) { t.Errorf("Expected true") } } func TestGetAccessModes(t *testing.T) { tmpDir, plug := getPersistentPlugin(t) defer os.RemoveAll(tmpDir) modes := plug.GetAccessModes() if !volumetest.ContainsAccessMode(modes, v1.ReadWriteOnce) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 08 10:53:39 UTC 2023 - 22.5K bytes - Viewed (0) -
platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/event/BroadcastDispatchTest.groovy
dispatch1.removeAll([]).is(dispatch1) dispatch1.removeAll([listener2, listener3]).is(dispatch1) def dispatch2 = dispatch1.add(listener1) dispatch2.removeAll([]).is(dispatch2) dispatch2.removeAll([listener2, listener3]).is(dispatch2) def dispatch3 = dispatch2.add(listener2) dispatch3.removeAll([]).is(dispatch3)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 08:59:22 UTC 2023 - 14.9K bytes - Viewed (0) -
src/expvar/expvar_test.go
"runtime" "strconv" "sync" "sync/atomic" "testing" ) // RemoveAll removes all exported variables. // This is for tests only. func RemoveAll() { vars.keysMu.Lock() defer vars.keysMu.Unlock() for _, k := range vars.keys { vars.m.Delete(k) } vars.keys = nil } func TestNil(t *testing.T) { RemoveAll() val := Get("missing") if val != nil { t.Errorf("got %v, want nil", val) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:46:19 UTC 2024 - 13.4K bytes - Viewed (0) -
pkg/volume/util/subpath/subpath_windows_test.go
func TestDoSafeMakeDir(t *testing.T) { base, err := ioutil.TempDir("", "TestDoSafeMakeDir") if err != nil { t.Fatalf(err.Error()) } defer os.RemoveAll(base) testingVolumePath := filepath.Join(base, "testingVolumePath") os.MkdirAll(testingVolumePath, 0755) defer os.RemoveAll(testingVolumePath) tests := []struct { volumePath string subPath string expectError bool symlinkTarget string }{ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 24 19:47:49 UTC 2021 - 13.8K bytes - Viewed (0) -
cmd/kubeadm/app/util/pkiutil/pki_helpers_test.go
actual := WriteKey(tmpdir, "foo", rootCAKey) if actual != nil { t.Errorf( "failed WriteCertAndKey with an error: %v", actual, ) } } func TestWritePublicKey(t *testing.T) { tmpdir, err := os.MkdirTemp("", "") if err != nil { t.Fatalf("Couldn't create tmpdir") } defer os.RemoveAll(tmpdir) actual := WritePublicKey(tmpdir, "foo", rootCAKey.Public())
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jan 31 21:49:21 UTC 2024 - 22.5K bytes - Viewed (0)