MCPcopy
hub / github.com/ddworken/hishtory / testUpdateFromPrevToReleaseViaProd

Function testUpdateFromPrevToReleaseViaProd

client/integration_test.go:591–595  ·  view source on GitHub ↗
(t *testing.T, tester shellTester)

Source from the content-addressed store, hash-verified

589}
590
591func testUpdateFromPrevToReleaseViaProd(t *testing.T, tester shellTester) {
592 defer testutils.BackupAndRestoreEnv("HISHTORY_SERVER")()
593 os.Setenv("HISHTORY_SERVER", "https://api.hishtory.dev")
594 testGenericUpdate(t, tester, installFromPrev, updateToRelease)
595}
596
597func testGenericUpdate(t *testing.T, tester shellTester, installInitialVersion func(*testing.T, shellTester) (string, string), installUpdatedVersion func(*testing.T, shellTester) string) {
598 defer testutils.BackupAndRestoreEnv("HISHTORY_FORCE_CLIENT_VERSION")()

Callers 1

TestParamFunction · 0.85

Calls 2

BackupAndRestoreEnvFunction · 0.92
testGenericUpdateFunction · 0.85

Tested by

no test coverage detected