Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 546 for GetEnv (0.15 sec)

  1. src/syscall/syscall_freebsd_test.go

    // license that can be found in the LICENSE file.
    
    //go:build freebsd
    
    package syscall_test
    
    import (
    	"os"
    	"testing"
    )
    
    func TestMain(m *testing.M) {
    	if os.Getenv("GO_DEATHSIG_PARENT") == "1" {
    		deathSignalParent()
    	} else if os.Getenv("GO_DEATHSIG_CHILD") == "1" {
    		deathSignalChild()
    	}
    
    	os.Exit(m.Run())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 16 01:17:28 UTC 2022
    - 424 bytes
    - Viewed (0)
  2. 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)
  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. src/cmd/dist/buildtool.go

    	defer os.Setenv("GOROOT", os.Getenv("GOROOT"))
    	os.Setenv("GOROOT", goroot_bootstrap)
    
    	defer os.Setenv("GOPATH", os.Getenv("GOPATH"))
    	os.Setenv("GOPATH", workspace)
    
    	defer os.Setenv("GOBIN", os.Getenv("GOBIN"))
    	os.Setenv("GOBIN", "")
    
    	os.Setenv("GOOS", "")
    	os.Setenv("GOHOSTOS", "")
    	os.Setenv("GOARCH", "")
    	os.Setenv("GOHOSTARCH", "")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 23:29:41 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. src/runtime/testdata/testprogcgo/cgo.go

    				}()
    				var s *string
    				*s = ""
    				fmt.Printf("continued after expected panic\n")
    			}()
    		}
    	}()
    	time.Sleep(time.Millisecond)
    	start := time.Now()
    	var times []time.Duration
    	n := 64
    	if os.Getenv("RUNTIME_TEST_SHORT") != "" {
    		n = 16
    	}
    	for i := 0; i < n; i++ {
    		go func() {
    			runtime.LockOSThread()
    			select {}
    		}()
    		go func() {
    			runtime.LockOSThread()
    			select {}
    		}()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 13:20:27 UTC 2017
    - 1.8K bytes
    - Viewed (0)
  9. platforms/ide/ide-native/src/integTest/groovy/org/gradle/ide/fixtures/IdeCommandLineUtil.groovy

                    Properties properties = new Properties()
                    properties.JAVA_HOME = String.valueOf(System.getenv('JAVA_HOME'))
                    properties.GRADLE_USER_HOME = String.valueOf(gradle.gradleUserHomeDir.absolutePath)
                    properties.GRADLE_OPTS = String.valueOf(System.getenv('GRADLE_OPTS'))
                    return properties
                }
    
                void assertEquals(key, expected, actual) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  10. tests/tests_test.go

    			log.Printf("failed to ping sqlDB, got error %v", err)
    			os.Exit(1)
    		}
    
    		RunMigrations()
    	}
    }
    
    func OpenTestConnection(cfg *gorm.Config) (db *gorm.DB, err error) {
    	dbDSN := os.Getenv("GORM_DSN")
    	switch os.Getenv("GORM_DIALECT") {
    	case "mysql":
    		log.Println("testing mysql...")
    		if dbDSN == "" {
    			dbDSN = mysqlDSN
    		}
    		db, err = gorm.Open(mysql.Open(dbDSN), cfg)
    	case "postgres":
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Dec 15 08:36:08 UTC 2023
    - 3.3K bytes
    - Viewed (0)
Back to top