MCPcopy Create free account
hub / github.com/GoMudEngine/GoMud / writeHTTPSSetupTempConfig

Function writeHTTPSSetupTempConfig

scripts/https_setup_test.go:461–471  ·  view source on GitHub ↗
(t *testing.T, content string)

Source from the content-addressed store, hash-verified

459}
460
461func writeHTTPSSetupTempConfig(t *testing.T, content string) string {
462 t.Helper()
463
464 tempDir := t.TempDir()
465 configPath := filepath.Join(tempDir, "config.yaml")
466 if err := os.WriteFile(configPath, []byte(content), 0o600); err != nil {
467 t.Fatalf("os.WriteFile() error = %v", err)
468 }
469
470 return configPath
471}
472
473func readHTTPSSetupConfig(t *testing.T, configPath string) string {
474 t.Helper()

Calls

no outgoing calls

Tested by

no test coverage detected