(t *testing.T)
| 201 | } |
| 202 | |
| 203 | func TestDefaultsTargetEndpoints(t *testing.T) { |
| 204 | repoTarget := defaultsTarget{scope: defaultsScopeRepo, repoOwner: "github", repoName: "gh-aw"} |
| 205 | orgTarget := defaultsTarget{scope: defaultsScopeOrg, org: "github"} |
| 206 | entTarget := defaultsTarget{scope: defaultsScopeEnt, enterprise: "octo-ent"} |
| 207 | |
| 208 | assert.Equal(t, "repos/github/gh-aw/actions/variables", repoTarget.variablesEndpoint()) |
| 209 | assert.Equal(t, "orgs/github/actions/variables", orgTarget.variablesEndpoint()) |
| 210 | assert.Equal(t, "enterprises/octo-ent/actions/variables", entTarget.variablesEndpoint()) |
| 211 | assert.Equal(t, "repos/github/gh-aw/actions/variables/GH_AW_DEFAULT_MAX_TURNS", repoTarget.variableEndpoint("GH_AW_DEFAULT_MAX_TURNS")) |
| 212 | } |
| 213 | |
| 214 | func TestDefaultsBuildUpdateChanges(t *testing.T) { |
| 215 | changes := defaultsBuildUpdateChanges(&defaultsFile{ |
nothing calls this directly
no test coverage detected