Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 50 for newSpec (0.71 sec)

  1. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/KillProcessAvailability.groovy

                //On some windowses, taskkill does not seem to work when triggered from java
                //On our CIs this works fine
                def e = TestFiles.execHandleFactory().newExec()
                        .commandLine("taskkill.exe", "/?")
                        .redirectErrorStream()
                        .workingDir(new File(".").absoluteFile) //does not matter
                        .build()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  2. tests/helper_test.go

    func doCheckPet(t *testing.T, pet Pet, expect Pet, unscoped bool) {
    	if pet.ID != 0 {
    		var newPet Pet
    		if err := db(unscoped).Where("id = ?", pet.ID).First(&newPet).Error; err != nil {
    			t.Fatalf("errors happened when query: %v", err)
    		} else {
    			AssertObjEqual(t, newPet, pet, "ID", "CreatedAt", "UpdatedAt", "DeletedAt", "UserID", "Name")
    			AssertObjEqual(t, newPet, expect, "ID", "CreatedAt", "UpdatedAt", "DeletedAt", "UserID", "Name")
    		}
    	}
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Mar 19 03:50:28 UTC 2024
    - 8K bytes
    - Viewed (0)
  3. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/ScriptExecuter.groovy

    import org.gradle.process.internal.ExecHandle
    import org.gradle.process.internal.ExecHandleBuilder
    
    class ScriptExecuter {
        @Delegate
        ExecHandleBuilder builder = TestFiles.execHandleFactory().newExec()
    
        @Override
        ExecHandle build() {
            if (OperatingSystem.current().isWindows()) {
                def theArgs = ['/d', '/c', executable.replace('/', File.separator)] + getArgs()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 12 10:33:12 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/api/resource/math.go

    	bigThousand = big.NewInt(1000)
    	big1024     = big.NewInt(1024)
    
    	// Commonly needed inf.Dec values-- treat as read only!
    	decZero = inf.NewDec(0, 0)
    	decOne  = inf.NewDec(1, 0)
    
    	// Largest (in magnitude) number allowed.
    	maxAllowed = infDecAmount{inf.NewDec((1<<63)-1, 0)} // == max int64
    
    	// The maximum value we can represent milli-units for.
    	// Compare with the return value of Quantity.Value() to
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 23 13:07:14 UTC 2020
    - 7.3K bytes
    - Viewed (0)
  5. cni/pkg/util/executil.go

    package util
    
    import (
    	"bytes"
    	"errors"
    	"os/exec"
    	"strings"
    
    	"istio.io/istio/pkg/log"
    )
    
    type ExecList struct {
    	Cmd  string
    	Args []string
    }
    
    func NewExec(cmd string, args []string) *ExecList {
    	return &ExecList{
    		Cmd:  cmd,
    		Args: args,
    	}
    }
    
    func ExecuteOutput(cmd string, args ...string) (string, error) {
    	externalCommand := exec.Command(cmd, args...)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. plugin/pkg/admission/resourcequota/admission_test.go

    	// verify quota rejects negative pvc storage requests
    	newPvc := validPersistentVolumeClaim("not-allowed-pvc", getVolumeResourceRequirements(api.ResourceList{api.ResourceStorage: resource.MustParse("-1Gi")}, api.ResourceList{}))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:28:42 UTC 2024
    - 84.1K bytes
    - Viewed (0)
  7. platforms/jvm/language-java/src/main/java/org/gradle/api/internal/tasks/compile/CommandLineJavaCompiler.java

            return WorkResults.didWork(true);
        }
    
        private ExecHandle createCompilerHandle(String executable, JavaCompileSpec spec) {
            ExecHandleBuilder builder = execHandleFactory.newExec();
            builder.setWorkingDir(spec.getWorkingDir());
            builder.setExecutable(executable);
            argumentsGenerator.collectArguments(spec, new ExecSpecBackedArgCollector(builder));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Aug 28 11:40:18 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  8. pkg/api/persistentvolumeclaim/util_test.go

    		for _, newpvcInfo := range pvcInfo {
    			oldpvc := oldpvcInfo.pvc()
    			newpvc := newpvcInfo.pvc()
    			if newpvc == nil {
    				continue
    			}
    
    			t.Run(fmt.Sprintf("old pvc %v, new pvc %v", oldpvcInfo.description, newpvcInfo.description), func(t *testing.T) {
    				EnforceDataSourceBackwardsCompatibility(&newpvc.Spec, nil)
    
    				// old pvc should never be changed
    				if !reflect.DeepEqual(oldpvc, oldpvcInfo.pvc()) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  9. platforms/jvm/jvm-services/src/main/java/org/gradle/jvm/toolchain/internal/DefaultOsXJavaHomeCommand.java

        }
    
        @VisibleForTesting
        protected void executeCommand(ByteArrayOutputStream outputStream) {
            ExecHandleBuilder execHandleBuilder = execHandleFactory.newExec();
            execHandleBuilder.workingDir(new File(".").getAbsoluteFile());
            execHandleBuilder.commandLine("/usr/libexec/java_home", "-V");
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 10 18:03:55 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  10. pkg/controller/volume/expand/expand_controller.go

    			}
    
    			oldReq := oldPVC.Spec.Resources.Requests[v1.ResourceStorage]
    			oldCap := oldPVC.Status.Capacity[v1.ResourceStorage]
    			newPVC, ok := new.(*v1.PersistentVolumeClaim)
    			if !ok {
    				return
    			}
    			newReq := newPVC.Spec.Resources.Requests[v1.ResourceStorage]
    			newCap := newPVC.Status.Capacity[v1.ResourceStorage]
    			// PVC will be enqueued under 2 circumstances
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 16.2K bytes
    - Viewed (0)
Back to top