Package com.jcabi.github.mock
Class MkBranches
java.lang.Object
com.jcabi.github.mock.MkBranches
- All Implemented Interfaces:
Branches
Mock Git branches.
- Since:
- 0.24
-
Method Details
-
repo
Description copied from interface:BranchesRepo which the branches are in. -
iterate
Description copied from interface:BranchesIterate over all branches in the repo. -
find
Description copied from interface:BranchesFind branches by name. -
create
Creates a new branch.- Parameters:
name- Name of branchsha- Commit SHA- Returns:
- New branch
- Throws:
IOException- if there is an I/O problem
-
get
Gets a branch by name.- Parameters:
name- Name of branch.- Returns:
- The branch with the given name
- Throws:
IOException- If there is an I/O problem
-