MCPcopy Create free account
hub / github.com/remotemobprogramming/mob / assertNoMobSessionBranches

Function assertNoMobSessionBranches

mob_test.go:2319–2327  ·  view source on GitHub ↗
(t *testing.T, configuration config.Configuration, branchName string)

Source from the content-addressed store, hash-verified

2317}
2318
2319func assertNoMobSessionBranches(t *testing.T, configuration config.Configuration, branchName string) {
2320 branch := newBranch(branchName)
2321 if branch.hasRemoteBranch(configuration) {
2322 failWithFailure(t, "none", branch.remote(configuration).Name)
2323 }
2324 if branch.hasLocalBranch() {
2325 failWithFailure(t, "none", branchName)
2326 }
2327}
2328
2329func assertGitStatus(t *testing.T, expected map[string]string) {
2330 equals(t, expected, gitStatus())

Calls 5

newBranchFunction · 0.85
hasRemoteBranchMethod · 0.80
remoteMethod · 0.80
hasLocalBranchMethod · 0.80
failWithFailureFunction · 0.70

Tested by

no test coverage detected