Skip to content

Commit 68942f7

Browse files
mcp: remove underscores from test names
1 parent 68968c4 commit 68942f7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

mcp/schema_cache_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/google/jsonschema-go/jsonschema"
1313
)
1414

15-
func TestSchemaCache_ByType(t *testing.T) {
15+
func TestSchemaCacheByType(t *testing.T) {
1616
cache := NewSchemaCache()
1717

1818
type TestInput struct {
@@ -48,7 +48,7 @@ func TestSchemaCache_ByType(t *testing.T) {
4848
}
4949
}
5050

51-
func TestSchemaCache_BySchema(t *testing.T) {
51+
func TestSchemaCacheBySchema(t *testing.T) {
5252
cache := NewSchemaCache()
5353

5454
schema := &jsonschema.Schema{
@@ -88,7 +88,7 @@ func TestSchemaCache_BySchema(t *testing.T) {
8888
}
8989
}
9090

91-
func TestSetSchema_CachesGeneratedSchemas(t *testing.T) {
91+
func TestSetSchemaCachesGeneratedSchemas(t *testing.T) {
9292
cache := NewSchemaCache()
9393

9494
type TestInput struct {
@@ -128,7 +128,7 @@ func TestSetSchema_CachesGeneratedSchemas(t *testing.T) {
128128
}
129129
}
130130

131-
func TestSetSchema_CachesProvidedSchemas(t *testing.T) {
131+
func TestSetSchemaCachesProvidedSchemas(t *testing.T) {
132132
cache := NewSchemaCache()
133133

134134
// This simulates the github-mcp-server pattern:
@@ -170,7 +170,7 @@ func TestSetSchema_CachesProvidedSchemas(t *testing.T) {
170170
}
171171
}
172172

173-
func TestSetSchema_NoCacheWhenNil(t *testing.T) {
173+
func TestSetSchemaNoCacheWhenNil(t *testing.T) {
174174
type TestInput struct {
175175
Query string `json:"query"`
176176
}
@@ -201,7 +201,7 @@ func TestSetSchema_NoCacheWhenNil(t *testing.T) {
201201
}
202202
}
203203

204-
func TestAddTool_CachesBetweenCalls(t *testing.T) {
204+
func TestAddToolCachesBetweenCalls(t *testing.T) {
205205
cache := NewSchemaCache()
206206

207207
type GreetInput struct {

0 commit comments

Comments
 (0)