Steve Streeting
|
0965b58dea
|
Change AllLocalObjects to return Pointers so we have access to size
|
2015-10-02 09:44:27 -07:00 |
|
Steve Streeting
|
e52ce9c1c1
|
Make sure random test data is seeded differently between commits
You could still end up with duplicated seeds between commits which could
cause unintended consequences.
|
2015-09-11 16:41:58 +01:00 |
|
Steve Streeting
|
7216ffc34f
|
Refactor initialisation of global dirs into reusable function
Needed for test.Repo to reliably function for some tests
|
2015-09-09 15:17:16 +01:00 |
|
Steve Streeting
|
6a2fdacca8
|
Make sure data in AddCommits really is uniquely seeded for all files
Previously because of the multiply either being 0 would result in the
same seed
|
2015-09-09 15:16:30 +01:00 |
|
Steve Streeting
|
0968ac04dd
|
Encode incoming son data as string for ease of use
|
2015-08-25 16:56:21 +01:00 |
|
Steve Streeting
|
3f18feb2e2
|
Make testutils actually write objects too (PointerClean only creates temp)
|
2015-08-25 15:28:32 +01:00 |
|
Steve Streeting
|
fd22663cbb
|
Allow file data to be provided as reader or []byte (useful for json)
|
2015-08-25 15:08:11 +01:00 |
|
Steve Streeting
|
2fa44e06d5
|
Create lfstest-testutils tool to create more complex test cases easily in shell
Right now can create commits using JSON version of []*test.CommitInput
|
2015-08-24 17:54:56 +01:00 |
|
Steve Streeting
|
0ebd8ba3b1
|
Don't use testing.T directly, create compatible subset interface & use that
This allows us more flexibility in using this outside of a go test
|
2015-08-24 17:45:18 +01:00 |
|
Steve Streeting
|
21596a0e17
|
Test for ScanPreviousVersions
|
2015-08-24 15:15:16 +01:00 |
|
Steve Streeting
|
abf0f93441
|
Sort refs by name to be able to assert.Equal() consistently
Git may report in different orders depending on circumstances
|
2015-08-21 16:53:16 +01:00 |
|
Steve Streeting
|
cdafe05dce
|
Refine errors
|
2015-08-21 16:42:03 +01:00 |
|
Steve Streeting
|
a60a9588a0
|
Fix Popd()
|
2015-08-21 16:41:33 +01:00 |
|
Steve Streeting
|
813837969e
|
Make sure username/email are always supplied to commit so work in any env
|
2015-08-21 16:33:08 +01:00 |
|
Steve Streeting
|
0740f59d9d
|
More error checking on commitAtDate
|
2015-08-21 16:09:17 +01:00 |
|
Steve Streeting
|
dadeb342c2
|
First pass of fetching recent commits
|
2015-08-21 15:19:16 +01:00 |
|
Steve Streeting
|
408928642e
|
Allow test repos to have remotes which are automatically cleaned
|
2015-08-20 12:03:07 +01:00 |
|
Steve Streeting
|
7e6e2979dd
|
Store *testing.T in test.Repo to reduce number of args needed to funcs
|
2015-08-20 10:46:08 +01:00 |
|
Steve Streeting
|
3dd601710c
|
Simplify the test types a bit, already in the test package
|
2015-08-19 17:33:58 +01:00 |
|
Steve Streeting
|
11ab2c179f
|
Add Pushd/Popd functions to TestRepo for convenience
|
2015-08-19 16:45:21 +01:00 |
|
Steve Streeting
|
8202a785e0
|
Support creating tags on test commits
|
2015-08-19 13:02:58 +01:00 |
|
Steve Streeting
|
241152df3d
|
Fix placeholder data reader, need to return io.EOF at end of stream
|
2015-08-19 13:02:37 +01:00 |
|
Steve Streeting
|
895bad2380
|
When cleaning up, make sure cwd isn't inside folder to be deleted
|
2015-08-18 18:07:14 +01:00 |
|
Steve Streeting
|
d8cad4e58a
|
Attach setup func to TestRepo instance, be safe with cwd
|
2015-08-18 18:01:26 +01:00 |
|
Steve Streeting
|
02c5c645fb
|
Working on some "go test" utilities to create non-trivial repos for granular tests
|
2015-08-18 16:26:38 +01:00 |
|