MCPcopy Create free account
hub / github.com/celer-pkg/celer / TestIntegrateCmd_RunE_Register_E2E

Function TestIntegrateCmd_RunE_Register_E2E

cmds/cmd_integrate_test.go:145–162  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

143}
144
145func TestIntegrateCmd_RunE_Register_E2E(t *testing.T) {
146 if completion.CurrentShell() == completion.NotSupported && runtime.GOOS != "windows" {
147 if _, err := os.Stat("/bin/bash"); err != nil {
148 t.Skip("no usable bash on this host; integrate test requires bash/zsh/powershell")
149 }
150 }
151
152 homeDir, stderr, err := runIntegrate(t)
153 if err != nil {
154 t.Fatalf("integrate should succeed: %v\nstderr:\n%s", err, stderr)
155 }
156
157 for _, p := range integrateArtifacts(homeDir) {
158 if !fileio.PathExists(p) {
159 t.Errorf("integrate should create %s", p)
160 }
161 }
162}
163
164func TestIntegrateCmd_RunE_Remove_E2E(t *testing.T) {
165 if runtime.GOOS != "windows" {

Callers

nothing calls this directly

Calls 4

CurrentShellFunction · 0.92
PathExistsFunction · 0.92
runIntegrateFunction · 0.85
integrateArtifactsFunction · 0.85

Tested by

no test coverage detected