Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 629 for getInf (0.45 sec)

  1. pkg/util/env/env.go

    func GetEnvAsStringOrFallback(key, defaultValue string) string {
    	if v := os.Getenv(key); v != "" {
    		return v
    	}
    	return defaultValue
    }
    
    // GetEnvAsIntOrFallback returns the env variable (parsed as integer) for
    // the given key and falls back to the given defaultValue if not set
    func GetEnvAsIntOrFallback(key string, defaultValue int) (int, error) {
    	if v := os.Getenv(key); v != "" {
    		value, err := strconv.Atoi(v)
    		if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 27 15:25:19 UTC 2019
    - 1.6K bytes
    - Viewed (0)
  2. src/testing/testing_test.go

    			}
    		} else {
    			os.Unsetenv(test.key)
    		}
    
    		t.Run(test.name, func(t *testing.T) {
    			t.Setenv(test.key, test.newValue)
    			if os.Getenv(test.key) != test.newValue {
    				t.Fatalf("unexpected value after t.Setenv: got %s, want %s", os.Getenv(test.key), test.newValue)
    			}
    		})
    
    		got, exists := os.LookupEnv(test.key)
    		if got != test.initialValue {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  3. .teamcity/.mvn/wrapper/MavenWrapperDownloader.java

            }
        }
    
        private static void downloadFileFromURL(String urlString, File destination) throws Exception {
            if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) {
                String username = System.getenv("MVNW_USERNAME");
                char[] password = System.getenv("MVNW_PASSWORD").toCharArray();
                Authenticator.setDefault(new Authenticator() {
                    @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 26 01:48:39 UTC 2020
    - 4.8K bytes
    - Viewed (0)
  4. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/sourceset/SourceSetLinkDependenciesIntegrationTest.groovy

            file("src/main/cpp1/func1.cpp") << """
                int getOne();
    
                int func1() {
                    return getOne();
                }
    """
            file("src/other/cpp/func2.cpp") << """
                int getTwo();
    
                int func2() {
                    return getTwo();
                }
    """
            file("src/lib1/cpp/getters.cpp") << """
                int getOne() {
                    return 1;
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 4K bytes
    - Viewed (0)
  5. src/internal/fuzz/mutator_test.go

    // license that can be found in the LICENSE file.
    
    package fuzz
    
    import (
    	"bytes"
    	"fmt"
    	"os"
    	"strconv"
    	"testing"
    )
    
    func BenchmarkMutatorBytes(b *testing.B) {
    	origEnv := os.Getenv("GODEBUG")
    	defer func() { os.Setenv("GODEBUG", origEnv) }()
    	os.Setenv("GODEBUG", fmt.Sprintf("%s,fuzzseed=123", origEnv))
    	m := newMutator()
    
    	for _, size := range []int{
    		1,
    		10,
    		100,
    		1000,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponse.java

    
        /**
         * @return the filesystem info
         */
        public FileSystemInformation getInfo () {
            return this.info;
        }
    
    
        /**
         * @param clazz
         * @return the filesystem info
         * @throws CIFSException
         */
        @SuppressWarnings ( "unchecked" )
        public <T extends FileSystemInformation> T getInfo ( Class<T> clazz ) throws CIFSException {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 4.2K bytes
    - Viewed (0)
  7. src/net/http/cgi/cgi_main.go

    package cgi
    
    import (
    	"fmt"
    	"io"
    	"net/http"
    	"os"
    	"path"
    	"slices"
    	"strings"
    	"time"
    )
    
    func cgiMain() {
    	switch path.Join(os.Getenv("SCRIPT_NAME"), os.Getenv("PATH_INFO")) {
    	case "/bar", "/test.cgi", "/myscript/bar", "/test.cgi/extrapath":
    		testCGI()
    		return
    	}
    	childCGIProcess()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  8. src/syscall/exec_windows_test.go

    		}
    	}
    }
    
    func TestChangingProcessParent(t *testing.T) {
    	if os.Getenv("GO_WANT_HELPER_PROCESS") == "parent" {
    		// in parent process
    
    		// Parent does nothing. It is just used as a parent of a child process.
    		time.Sleep(time.Minute)
    		os.Exit(0)
    	}
    
    	if os.Getenv("GO_WANT_HELPER_PROCESS") == "child" {
    		// in child process
    		dumpPath := os.Getenv("GO_WANT_HELPER_PROCESS_FILE")
    		if dumpPath == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:29 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/test_goroot_PATH.txt

    	"os/exec"
    	"path/filepath"
    	"testing"
    )
    
    func TestGoCommandExists(t *testing.T) {
    	got, err := exec.LookPath("go")
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	want := filepath.Join(os.Getenv("GOROOT"), "bin", "go" + os.Getenv("GOEXE"))
    	if got != want {
    		t.Fatalf(`exec.LookPath("go") = %q; want %q`, got, want)
    	}
    }
    -- $WORK/bin/README.txt --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 24 21:26:10 UTC 2022
    - 795 bytes
    - Viewed (0)
  10. platforms/software/testing-base/src/main/java/org/gradle/api/internal/tasks/testing/logging/DefaultTestLoggingContainer.java

            }
    
            setEvents(EnumSet.of(TestLogEvent.FAILED));
            setExceptionFormat(TestExceptionFormat.SHORT);
    
            getInfo().setEvents(EnumSet.of(TestLogEvent.FAILED, TestLogEvent.SKIPPED, TestLogEvent.STANDARD_OUT, TestLogEvent.STANDARD_ERROR));
            getInfo().setStackTraceFilters(EnumSet.of(TestStackTraceFilter.TRUNCATE));
    
            getDebug().setEvents(EnumSet.allOf(TestLogEvent.class));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 7.6K bytes
    - Viewed (0)
Back to top