(t *testing.T)
| 658 | } |
| 659 | |
| 660 | func TestResolveSources_URLReference(t *testing.T) { |
| 661 | t.Parallel() |
| 662 | |
| 663 | testURL := "https://example.com/agent.yaml" |
| 664 | sources, err := ResolveSources(testURL, nil) |
| 665 | require.NoError(t, err) |
| 666 | require.Len(t, sources, 1) |
| 667 | |
| 668 | // The key should be the URL-encoded version |
| 669 | expectedKey := url.QueryEscape(testURL) |
| 670 | source, ok := sources[expectedKey] |
| 671 | require.True(t, ok) |
| 672 | assert.Equal(t, testURL, source.Name()) |
| 673 | } |
| 674 | |
| 675 | func TestURLSource_Read_WithGitHubAuth(t *testing.T) { |
| 676 | t.Parallel() |
nothing calls this directly
no test coverage detected