MCPcopy
hub / github.com/google/git-appraise / TestAcceptedThenRejectedThreadStatus

Function TestAcceptedThenRejectedThreadStatus

review/review_test.go:288–306  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

286}
287
288func TestAcceptedThenRejectedThreadStatus(t *testing.T) {
289 accepted := true
290 rejected := false
291 sampleThread := CommentThread{
292 Comment: comment.Comment{
293 Resolved: &accepted,
294 },
295 Children: []CommentThread{
296 CommentThread{
297 Comment: comment.Comment{
298 Timestamp: "012345",
299 Resolved: &rejected,
300 },
301 },
302 },
303 }
304 sampleThread.updateResolvedStatus()
305 sampleThread.validateRejected(t)
306}
307
308func TestRejectedThenAcceptedThreadStatus(t *testing.T) {
309 accepted := true

Callers

nothing calls this directly

Calls 2

updateResolvedStatusMethod · 0.95
validateRejectedMethod · 0.95

Tested by

no test coverage detected