MCPcopy Index your code
hub / github.com/appleboy/CodeGPT / TestGetAPIKeyFromHelper_EmptyCommand

Function TestGetAPIKeyFromHelper_EmptyCommand

util/api_key_helper_test.go:65–73  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

63}
64
65func TestGetAPIKeyFromHelper_EmptyCommand(t *testing.T) {
66 _, err := GetAPIKeyFromHelper(context.Background(), "")
67 if err == nil {
68 t.Fatal("GetAPIKeyFromHelper() with empty command should return error")
69 }
70 if !strings.Contains(err.Error(), "empty") {
71 t.Errorf("error message should mention empty command, got: %v", err)
72 }
73}
74
75func TestGetAPIKeyFromHelper_EmptyOutput(t *testing.T) {
76 tests := []struct {

Callers

nothing calls this directly

Calls 1

GetAPIKeyFromHelperFunction · 0.70

Tested by

no test coverage detected