MCPcopy Index your code
hub / github.com/github/copilot-sdk / TestClient_BaseDirectory

Function TestClient_BaseDirectory

go/client_test.go:484–502  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

482}
483
484func TestClient_BaseDirectory(t *testing.T) {
485 t.Run("should accept BaseDirectory option", func(t *testing.T) {
486 client := NewClient(&ClientOptions{
487 BaseDirectory: "/custom/copilot/home",
488 })
489
490 if client.options.BaseDirectory != "/custom/copilot/home" {
491 t.Errorf("Expected BaseDirectory to be '/custom/copilot/home', got %q", client.options.BaseDirectory)
492 }
493 })
494
495 t.Run("should default BaseDirectory to empty string", func(t *testing.T) {
496 client := NewClient(&ClientOptions{})
497
498 if client.options.BaseDirectory != "" {
499 t.Errorf("Expected BaseDirectory to be empty, got %q", client.options.BaseDirectory)
500 }
501 })
502}
503
504func TestClient_EnvOptions(t *testing.T) {
505 t.Run("should store custom environment variables", func(t *testing.T) {

Callers

nothing calls this directly

Calls 1

NewClientFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…