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

Function assertMobSessionBranches

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

Source from the content-addressed store, hash-verified

2295}
2296
2297func assertMobSessionBranches(t *testing.T, configuration config.Configuration, branchName string) {
2298 branch := newBranch(branchName)
2299 if !branch.hasRemoteBranch(configuration) {
2300 failWithFailure(t, branch.remote(configuration).Name, "none")
2301 }
2302 if !branch.hasLocalBranch() {
2303 failWithFailure(t, branchName, "none")
2304 }
2305}
2306
2307func assertLocalBranch(t *testing.T, branch string) {
2308 if !newBranch(branch).hasLocalBranch() {

Calls 5

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

Tested by

no test coverage detected