(t *testing.T)
| 371 | } |
| 372 | |
| 373 | func TestRevTreeCompareRevIDs(t *testing.T) { |
| 374 | ctx := base.TestCtx(t) |
| 375 | assert.Equal(t, 0, compareRevIDs(ctx, "1-aaa", "1-aaa")) |
| 376 | assert.Equal(t, -1, compareRevIDs(ctx, "1-aaa", "5-aaa")) |
| 377 | assert.Equal(t, 1, compareRevIDs(ctx, "10-aaa", "5-aaa")) |
| 378 | assert.Equal(t, 1, compareRevIDs(ctx, "1-bbb", "1-aaa")) |
| 379 | assert.Equal(t, 1, compareRevIDs(ctx, "5-bbb", "1-zzz")) |
| 380 | } |
| 381 | |
| 382 | // TestRevTreeChannelMapLeafOnly ensures that only non-winning leaf revisions populate channel information from/to channelMap. |
| 383 | func TestRevTreeChannelMapLeafOnly(t *testing.T) { |
nothing calls this directly
no test coverage detected