func TestOrderedSequencesSubsetMap(t *testing.T) { v1 := generateNumbersAsValuesFromToBy(0, lengthOfNumbersTest*2, 1) v2 := generateNumbersAsValuesFromToBy(0, lengthOfNumbersTest, 1) tm1 := newDiffTestSuiteMap(v1, v2, 0, lengthOfNumbersTest/2, 0) tm2 := newDiffTestSuiteMap(v2, v1, lengthOfNumbersTest/2, 0, 0) suite.Run(t, tm1) suite.Run(t, tm2) tm1.Equal(tm1.added, tm2.removed, "added and removed in reverse order diff") tm1.Equal(tm1.removed, tm2.added, "removed and added in reverse order diff") }
func TestOrderedSequencesDisjointSet(t *testing.T) { v1 := generateNumbersAsValuesFromToBy(0, lengthOfNumbersTest, 2) v2 := generateNumbersAsValuesFromToBy(1, lengthOfNumbersTest, 2) ts1 := newDiffTestSuiteSet(v1, v2, lengthOfNumbersTest/2, lengthOfNumbersTest/2, 0) ts2 := newDiffTestSuiteSet(v2, v1, lengthOfNumbersTest/2, lengthOfNumbersTest/2, 0) suite.Run(t, ts1) suite.Run(t, ts2) ts1.Equal(ts1.added, ts2.removed, "added and removed in disjoint diff") ts1.Equal(ts1.removed, ts2.added, "removed and added in disjoint diff") }
func TestOrderedSequencesDisjoint(t *testing.T) { ts1 := newDiffTestSuite( 0, lengthOfNumbersTest, 2, 1, lengthOfNumbersTest, 2, lengthOfNumbersTest/2, lengthOfNumbersTest/2, 0) ts2 := newDiffTestSuite( 1, lengthOfNumbersTest, 2, 0, lengthOfNumbersTest, 2, lengthOfNumbersTest/2, lengthOfNumbersTest/2, 0) suite.Run(t, ts1) suite.Run(t, ts2) ts1.Equal(ts1.added, ts2.removed, "added and removed in disjoint diff") ts1.Equal(ts1.removed, ts2.added, "removed and added in disjoint diff") }
func TestOrderedSequencesSubset(t *testing.T) { ts1 := newDiffTestSuite( 0, lengthOfNumbersTest, 1, 0, lengthOfNumbersTest/2, 1, 0, lengthOfNumbersTest/2, 0) ts2 := newDiffTestSuite( 0, lengthOfNumbersTest/2, 1, 0, lengthOfNumbersTest, 1, lengthOfNumbersTest/2, 0, 0) suite.Run(t, ts1) suite.Run(t, ts2) ts1.Equal(ts1.added, ts2.removed, "added and removed in reverse order diff") ts1.Equal(ts1.removed, ts2.added, "removed and added in reverse order diff") }
func TestOrderedSequencesIdentical(t *testing.T) { ts := newDiffTestSuite( 0, lengthOfNumbersTest, 1, 0, lengthOfNumbersTest, 1, 0, 0, 0) suite.Run(t, ts) }
func TestLibTestSuite(t *testing.T) { suite.Run(t, &LibTestSuite{}) }
func TestBasics(t *testing.T) { suite.Run(t, &testSuite{}) }
// Called from "go test" func TestOrderedSequencesIdenticalSet(t *testing.T) { v1 := generateNumbersAsValuesFromToBy(0, lengthOfNumbersTest, 1) v2 := generateNumbersAsValuesFromToBy(0, lengthOfNumbersTest, 1) ts := newDiffTestSuiteSet(v1, v2, 0, 0, 0) suite.Run(t, ts) }
func TestOpCache(t *testing.T) { suite.Run(t, &OpCacheSuite{}) }
func TestParserTestSuite(t *testing.T) { suite.Run(t, &ParserTestSuite{}) suite.Run(t, &ParsedResultTestSuite{}) }
func TestListSuite4K(t *testing.T) { suite.Run(t, newListTestSuite(12, "8h3s3pjmp2ihbr7270iqe446ij3bfmqr", 2, 2, 2)) }
func TestSetSuite4K(t *testing.T) { suite.Run(t, newSetTestSuite(12, "8i0nfi4vf4ilp6g5bb4uhlqpbie0rbrh", 2, 2, 2, newNumber)) }
func TestSetSuite1K(t *testing.T) { suite.Run(t, newSetTestSuite(10, "n99i86gc4s23ol7ctmjuc1p4jk4msr4i", 0, 0, 0, newNumber)) }
func TestSync(t *testing.T) { suite.Run(t, &testSuite{}) }
func TestDir(t *testing.T) { suite.Run(t, &fuseTestSuite{}) }
func TestNomsShow(t *testing.T) { util.UtilExiter = testExiter{} suite.Run(t, &nomsShowTestSuite{}) }
func TestListSuite1K(t *testing.T) { suite.Run(t, newListTestSuite(10, "1md2squldk4fo7sg179pbqvdd6a3aa4p", 0, 0, 0)) }
func TestSetSuite1KStructs(t *testing.T) { suite.Run(t, newSetTestSuite(10, "901lc62988o1epbj29811f5f0u06ep8g", 0, 0, 0, newNumberStruct)) }
func TestListSuite8K(t *testing.T) { suite.Run(t, newListTestSuite(14, "v936b655mg56lb9jh7951ielec80et15", 5, 2, 2)) }
func TestSetSuite4KStructs(t *testing.T) { suite.Run(t, newSetTestSuite(12, "410of8pb7ib5rms4b611490brueqcc7c", 4, 2, 2, newNumberStruct)) }
func TestCSVExporter(t *testing.T) { suite.Run(t, &testSuite{}) }
func TestBlobSuite4K(t *testing.T) { suite.Run(t, newBlobTestSuite(12, "sha1-fc4c95f8f9db7c60d17bfc3366373e44168b6903", 9, 2, 2)) }
func TestSerialRunnerTestSuite(t *testing.T) { suite.Run(t, &SerialRunnerTestSuite{}) }
func TestBlobSuite16K(t *testing.T) { suite.Run(t, newBlobTestSuite(14, "sha1-43cc3d646647cb63dfe3c13ea6e352fecc597379", 2, 2, 2)) }
func TestOrderedSequencesIdenticalMap(t *testing.T) { v1 := generateNumbersAsValuesFromToBy(0, lengthOfNumbersTest*2, 1) v2 := generateNumbersAsValuesFromToBy(0, lengthOfNumbersTest*2, 1) tm := newDiffTestSuiteMap(v1, v2, 0, 0, 0) suite.Run(t, tm) }
func TestBlobSuite64K(t *testing.T) { suite.Run(t, newBlobTestSuite(16, "sha1-5af76c7ea2a964ff7355418c3ec38504ee6cbd9e", 3, 2, 2)) }
func TestBlobSuite256K(t *testing.T) { if testing.Short() { t.Skip("Skipping test in short mode.") } suite.Run(t, newBlobTestSuite(18, "sha1-2fe75543395ab5f54d0586b88f79d44ebc41490d", 8, 2, 2)) }
func TestBlobSuite1K(t *testing.T) { suite.Run(t, newBlobTestSuite(10, "sha1-ccf0161935f285d1d80cbcab8fd4c092fbf1f63b", 3, 2, 2)) }
func TestWalkTestSuite(t *testing.T) { suite.Run(t, &WalkAllTestSuite{}) suite.Run(t, &WalkTestSuite{}) }
func TestMapSuite4KStructs(t *testing.T) { suite.Run(t, newMapTestSuite(12, "q2kgo4jonhgfeoblvlovh2eo7kqjel54", 7, 2, 2, newNumberStruct)) }