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

Function TestGitVersionCompare

mob_test.go:1968–1977  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1966}
1967
1968func TestGitVersionCompare(t *testing.T) {
1969 // Check real examples
1970 equals(t, true, (&GitVersion{2, 12, 0}).Less(GitVersion{2, 13, 0}))
1971 equals(t, false, (&GitVersion{2, 13, 0}).Less(GitVersion{2, 13, 0}))
1972 equals(t, false, (&GitVersion{2, 14, 0}).Less(GitVersion{2, 13, 0}))
1973 // Test each part of the version number
1974 equals(t, true, (&GitVersion{1, 2, 3}).Less(GitVersion{5, 2, 3}))
1975 equals(t, true, (&GitVersion{1, 2, 3}).Less(GitVersion{1, 5, 3}))
1976 equals(t, true, (&GitVersion{1, 2, 3}).Less(GitVersion{1, 2, 5}))
1977}
1978
1979func TestMobConfigWorksOutsideOfGitRepository(t *testing.T) {
1980 output := captureOutput(t)

Callers

nothing calls this directly

Calls 2

equalsFunction · 0.85
LessMethod · 0.80

Tested by

no test coverage detected