Skip to main content
Glama
basic_test.go569 B
package test import "testing" func TestAdd(t *testing.T) { result := 2 + 2 if result != 4 { t.Errorf("Expected 2 + 2 to equal 4, got %d", result) } } func TestString(t *testing.T) { str := "hello" if len(str) != 5 { t.Errorf("Expected length of 'hello' to be 5, got %d", len(str)) } } func TestWithOutput(t *testing.T) { t.Log("some test output") if true != true { t.Error("This should never fail") } } func TestSlice(t *testing.T) { slice := []int{1, 2, 3} if len(slice) != 3 { t.Errorf("Expected slice length to be 3, got %d", len(slice)) } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/privsim/mcp-test-runner'

If you have feedback or need assistance with the MCP directory API, please join our Discord server