本文整理汇总了Golang中go/skia/org/infra/go/rietveld.Issue.Committed方法的典型用法代码示例。如果您正苦于以下问题:Golang Issue.Committed方法的具体用法?Golang Issue.Committed怎么用?Golang Issue.Committed使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类go/skia/org/infra/go/rietveld.Issue
的用法示例。
在下文中一共展示了Issue.Committed方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: pretendRollLanded
// pretendRollLanded changes the roll to appear to have succeeded in the
// mockRietveld.
func (r *mockRietveld) pretendRollLanded(rm *mockRepoManager, issue *rietveld.Issue, tryResults []*buildbucket.Build) {
// Determine what revision we rolled to.
m := autoroll.ROLL_REV_REGEX.FindStringSubmatch(issue.Subject)
assert.NotNil(r.t, m)
assert.Equal(r.t, 3, len(m))
rolledTo, err := rm.FullSkiaHash(m[2])
assert.Nil(r.t, err)
rm.mockRolledPast(rolledTo, true)
rm.mockLastRollRev(rolledTo)
rm.mockForceUpdate()
issue.Closed = true
issue.Committed = true
issue.CommitQueue = false
issue.CommitQueueDryRun = false
issue.Description += "\n" + COMMITTED_STR
r.modify(issue, tryResults)
}