Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for newRule (0.16 sec)

  1. src/cmd/fix/main.go

    	newSrc, err := gofmtFile(file)
    	if err != nil {
    		return err
    	}
    	if !bytes.Equal(newSrc, src) {
    		newFile, err := parser.ParseFile(fset, filename, newSrc, parserMode)
    		if err != nil {
    			return err
    		}
    		file = newFile
    		fmt.Fprintf(&fixlog, " fmt")
    	}
    
    	// Apply all fixes to file.
    	newFile := file
    	fixed := false
    	for _, fix := range fixes {
    		if allowed != nil && !allowed[fix.name] {
    			continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. src/runtime/debug/stack.go

    			return err
    		}
    		runtime.KeepAlive(f) // prevent finalization before dup
    		fd = uintptr(fd2)
    	}
    	if prev := runtime_setCrashFD(fd); prev != ^uintptr(0) {
    		// We use NewFile+Close because it is portable
    		// unlike syscall.Close, whose parameter type varies.
    		os.NewFile(prev, "").Close() // ignore error
    	}
    	return nil
    }
    
    //go:linkname runtime_setCrashFD runtime.setCrashFD
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 15:19:04 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. testing/soak/src/integTest/kotlin/org/gradle/kotlin/dsl/caching/AbstractScriptCachingIntegrationTest.kt

            gradleExecuterFor(
                arrayOf(
                    "--debug", // Required to verify script compilation via log messages
                    "-Dorg.gradle.internal.operations.trace=${newFile("operation-trace")}",
                    *arguments
                )
            )
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 11:33:23 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  4. internal/logger/logrotate.go

    				Level:   ErrorKind,
    				Message: msg,
    				Time:    time.Now().UTC(),
    				Trace:   &log.Trace{Message: msg},
    			})
    		}
    	}
    
    	path := filepath.Join(w.opts.Directory, w.opts.FileNameFunc())
    	f, err := newFile(path)
    	if err != nil {
    		return fmt.Errorf("unable to create new file at %v: %w", path, err)
    	}
    
    	w.f = f
    
    	return nil
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  5. src/os/removeall_at.go

    			continue
    		}
    
    		return nil, e
    	}
    
    	if !supportsCloseOnExec {
    		syscall.CloseOnExec(r)
    	}
    
    	// We use kindNoPoll because we know that this is a directory.
    	return newFile(r, name, kindNoPoll, false), nil
    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/test/framework/components/prometheus/kube.go

    	}
    	if err := ctx.ConfigKube().YAML(ns, yaml).Apply(apply.NoCleanup); err != nil {
    		return err
    	}
    	ctx.CleanupConditionally(func() {
    		_ = ctx.ConfigKube().YAML(ns, yaml).Delete()
    	})
    	return nil
    }
    
    func newKube(ctx resource.Context, cfgIn Config) (Instance, error) {
    	c := &kubeComponent{
    		clusters: ctx.Clusters(),
    	}
    	c.id = ctx.TrackResource(c)
    	c.api = make(map[string]prometheusApiV1.API)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  7. pkg/test/framework/components/namespace/kube.go

    		_, err := c.Kube().CoreV1().Namespaces().Patch(context.TODO(), name, types.JSONPatchType, []byte(nsLabelPatch), metav1.PatchOptions{})
    		return err
    	})
    }
    
    // NewNamespace allocates a new testing namespace.
    func newKube(ctx resource.Context, cfg Config) (Instance, error) {
    	mu.Lock()
    	idctr++
    	nsid := idctr
    	r := rnd.Intn(99999)
    	mu.Unlock()
    
    	name := fmt.Sprintf("%s-%d-%d", cfg.Prefix, nsid, r)
    	n := &kubeNamespace{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 9K bytes
    - Viewed (0)
Back to top