- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 80 for getEnv (0.04 seconds)
-
tests/helper_test.go
if isTiDB() { t.Skipf("This test case skipped, because of TiDB '%s'", reason) } } func isTiDB() bool { return os.Getenv("GORM_DIALECT") == "tidb" } func isMysql() bool { return os.Getenv("GORM_DIALECT") == "mysql" } func isSqlite() bool { return os.Getenv("GORM_DIALECT") == "sqlite" } func db(unscoped bool) *gorm.DB { if unscoped { return DB.Unscoped() } else {
Created: Sun Dec 28 09:35:17 GMT 2025 - Last Modified: Tue Mar 19 03:50:28 GMT 2024 - 8K bytes - Click Count (0) -
docs/ko/docs/environment-variables.md
예를 들어 다음과 같은 `main.py` 파일이 있다고 합시다: ```Python hl_lines="3" import os name = os.getenv("MY_NAME", "World") print(f"Hello {name} from Python") ``` /// tip | 팁 <a href="https://docs.python.org/3.8/library/os.html#os.getenv" class="external-link" target="_blank">`os.getenv()`</a> 의 두 번째 인자는 반환할 기본값입니다. 여기서는 `"World"`를 넣었기에 기본값으로써 사용됩니다. 넣지 않으면 `None` 이 기본값으로 사용됩니다. ///Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Nov 09 16:39:20 GMT 2024 - 8.7K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/TestUtilCommon.kt
* limitations under the License. */ package okhttp3 import okio.Buffer import okio.Path import okio.Path.Companion.toPath val okHttpRoot: Path get() = getEnv("OKHTTP_ROOT")!!.toPath() fun String(vararg codePoints: Int): String { val buffer = Buffer() for (codePoint in codePoints) { buffer.writeUtf8CodePoint(codePoint) } return buffer.readUtf8()
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Dec 20 23:27:07 GMT 2023 - 931 bytes - Click Count (0) -
container-tests/build.gradle.kts
val platform = System.getProperty("okhttp.platform", "jdk9") val testJavaVersion = System.getProperty("test.java.version", "21").toInt() tasks.withType<Test> { useJUnitPlatform() onlyIf("By default not in CI") { System.getenv("CI") == null || (project.hasProperty("containerTests") && project.property("containerTests").toString().toBoolean()) } jvmArgs( "-Dokhttp.platform=$platform", ) if (platform == "loom") {
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sun Mar 17 14:46:34 GMT 2024 - 1.1K bytes - Click Count (1) -
docs/zh/docs/environment-variables.md
例如,你可以创建一个名为 `main.py` 的文件,其中包含以下内容: ```Python hl_lines="3" import os name = os.getenv("MY_NAME", "World") print(f"Hello {name} from Python") ``` /// tip 第二个参数是 <a href="https://docs.python.org/zh-cn/3.8/library/os.html#os.getenv" class="external-link" target="_blank">`os.getenv()`</a> 的默认返回值。 如果没有提供,默认值为 `None`,这里我们提供 `"World"` 作为默认值。 /// 然后你可以调用这个 Python 程序:Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Sat Nov 09 12:17:15 GMT 2024 - 8K bytes - Click Count (0) -
docs/pt/docs/environment-variables.md
Por exemplo, você poderia ter um arquivo `main.py` com: ```Python hl_lines="3" import os name = os.getenv("MY_NAME", "World") print(f"Hello {name} from Python") ``` /// tip | Dica O segundo argumento para <a href="https://docs.python.org/3.8/library/os.html#os.getenv" class="external-link" target="_blank">`os.getenv()`</a> é o valor padrão a ser retornado.Created: Sun Dec 28 07:19:09 GMT 2025 - Last Modified: Wed Nov 12 16:23:57 GMT 2025 - 8.6K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/cisupport/GenericCIDetector.java
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Sun Apr 13 18:50:07 GMT 2025 - 1.9K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/cisupport/TeamcityCIDetector.java
public static final String NAME = "TeamCity"; private static final String TEAMCITY_VERSION = "TEAMCITY_VERSION"; @Override public Optional<CIInfo> detectCI() { String ciEnv = System.getenv(TEAMCITY_VERSION); if (ciEnv != null && !ciEnv.trim().isEmpty()) { return Optional.of(new CIInfo() { @Override public String name() { return NAME;
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Sun Apr 13 18:50:07 GMT 2025 - 1.5K bytes - Click Count (0) -
build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/BuildScanInfoCollectingServices.kt
project.rootProject.name == "build-logic" -> rootProject.gradle.parent?.rootProject else -> project.gradle.parent?.rootProject } if (gradleRootProject != null && System.getenv("TEAMCITY_VERSION") != null) { val rootProjectName = rootProject.name val isInBuildLogic = rootProjectName == "build-logic" gradle.taskGraph.whenReady {Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Tue Jun 10 05:45:46 GMT 2025 - 3.1K bytes - Click Count (0) -
src/cmd/addr2line/addr2line_test.go
) // TestMain executes the test binary as the addr2line command if // GO_ADDR2LINETEST_IS_ADDR2LINE is set, and runs the tests otherwise. func TestMain(m *testing.M) { if os.Getenv("GO_ADDR2LINETEST_IS_ADDR2LINE") != "" { main() os.Exit(0) } os.Setenv("GO_ADDR2LINETEST_IS_ADDR2LINE", "1") // Set for subprocesses to inherit. os.Exit(m.Run()) } func loadSyms(t *testing.T, dbgExePath string) map[string]string {
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Fri Sep 06 13:23:48 GMT 2024 - 3.2K bytes - Click Count (0)