- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for createTempFile (0.23 sec)
-
internal/config/certs_test.go
} tempFile = tmpfile.Name() return tempFile, err } func TestParsePublicCertFile(t *testing.T) { tempFile1, err := createTempFile("public-cert-file", "") if err != nil { t.Fatalf("Unable to create temporary file. %v", err) } defer os.Remove(tempFile1) tempFile2, err := createTempFile("public-cert-file", `-----BEGIN CERTIFICATE----- MIICdTCCAd4CCQCO5G/W1xcE9TANBgkqhkiG9w0BAQUFADB/MQswCQYDVQQGEwJa
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Mon Sep 19 18:05:16 GMT 2022 - 21.6K bytes - Viewed (0) -
cmd/update_test.go
if kubernetes { t.Fatalf("Expected %t, got %t", false, kubernetes) } } // Tests if the environment we are running is Helm chart. func TestGetHelmVersion(t *testing.T) { createTempFile := func(content string) string { tmpfile, err := os.CreateTemp("", "helm-testfile-") if err != nil { t.Fatalf("Unable to create temporary file. %s", err) }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sat Mar 09 03:07:08 GMT 2024 - 10.7K bytes - Viewed (0)