Skip to content

Commit 6431879

Browse files
committed
Test README rendering
1 parent 067b0c2 commit 6431879

File tree

48 files changed

+192
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+192
-4
lines changed

models/db/iterate_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func TestIterate(t *testing.T) {
2525
return nil
2626
})
2727
assert.NoError(t, err)
28-
assert.EqualValues(t, 83, repoCnt)
28+
assert.EqualValues(t, 84, repoCnt)
2929

3030
err = db.Iterate(db.DefaultContext, nil, func(ctx context.Context, repoUnit *repo_model.RepoUnit) error {
3131
reopUnit2 := repo_model.RepoUnit{ID: repoUnit.ID}

models/db/list_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ func TestFind(t *testing.T) {
3535
var repoUnits []repo_model.RepoUnit
3636
err := db.Find(db.DefaultContext, &opts, &repoUnits)
3737
assert.NoError(t, err)
38-
assert.EqualValues(t, 83, len(repoUnits))
38+
assert.EqualValues(t, 84, len(repoUnits))
3939

4040
cnt, err := db.Count(db.DefaultContext, &opts, new(repo_model.RepoUnit))
4141
assert.NoError(t, err)
42-
assert.EqualValues(t, 83, cnt)
42+
assert.EqualValues(t, 84, cnt)
4343

4444
repoUnits = make([]repo_model.RepoUnit, 0, 10)
4545
newCnt, err := db.FindAndCount(db.DefaultContext, &opts, &repoUnits)

models/fixtures/repo_unit.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,3 +569,9 @@
569569
type: 3
570570
config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}"
571571
created_unix: 946684810
572+
573+
-
574+
id: 84
575+
repo_id: 56
576+
type: 1
577+
created_unix: 946684810

models/fixtures/repository.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1634,3 +1634,16 @@
16341634
is_private: true
16351635
num_issues: 1
16361636
status: 0
1637+
1638+
-
1639+
id: 56
1640+
owner_id: 2
1641+
owner_name: user2
1642+
lower_name: readme-test
1643+
name: readme-test
1644+
default_branch: master
1645+
is_empty: false
1646+
is_archived: false
1647+
is_private: true
1648+
status: 0
1649+
num_issues: 0

models/fixtures/user.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
num_followers: 2
6767
num_following: 1
6868
num_stars: 2
69-
num_repos: 11
69+
num_repos: 12
7070
num_teams: 0
7171
num_members: 0
7272
visibility: 0
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ref: refs/heads/master
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[core]
2+
repositoryformatversion = 0
3+
filemode = true
4+
bare = true
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# git ls-files --others --exclude-from=.git/info/exclude
2+
# Lines that start with '#' are comments.
3+
# For a project mostly in C, the following would be a good set of
4+
# exclude patterns (uncomment them if you want to use them):
5+
# *.[oa]
6+
# *~
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
ea9ef877d1d88af76682d8798418081264f10cfc refs/heads/fallbacks
2+
0d4c14db927c9ffba01fa7e126cc748b5c02c01e refs/heads/fallbacks2
3+
c66d5b07c2063d3268707f22226c708b589574ef refs/heads/fallbacks3
4+
89f8426e9eb5eff35c09b3565836c8f8e15d0ce9 refs/heads/fallbacks4
5+
b0e902496eae435ad03c92a5d479f916ef2d4893 refs/heads/fallbacks5
6+
84a5500b5cc040b11daf53fc42c542a99589dc76 refs/heads/fallbacks6
7+
cf406a96e416d7de5c4c1bbfffdd672300c822bf refs/heads/fallbacks7
8+
0d6ac644b969e9199915a492da9dba08c179fd23 refs/heads/fallbacks8
9+
5038febc0c57215beb3748d7ae4091a25a4acc93 refs/heads/fallbacks9
10+
9134e1f178ca4cccf1a197142646f2d7627e8cd5 refs/heads/i18n
11+
744d2441e55bc0010d6b340d303f0106a627ad29 refs/heads/master
12+
3c492566170b057e962c025515ab38bbd7444077 refs/heads/plain
13+
3882d6373a0882a6739b3cd9b24d21c630621234 refs/heads/sp-ace
14+
bf5ed898252eaa50dcc01108ed4417c3ea98a294 refs/heads/special-subdir-.gitea
15+
c03543573ab088ce1cf7090a387d2be621426234 refs/heads/special-subdir-.github
16+
e75957ad9b7e6ed16dda183529ec283db0bbc5fe refs/heads/special-subdir-docs
17+
46f5d5ab33d701642e08c713fab42af89fdd4fea refs/heads/special-subdir-nested
18+
9c0f872256b839c2b97ec22fd348d87b14045513 refs/heads/subdir
19+
d7a854fff61e45b98234d7aa79ecbcb1619cd3dd refs/heads/symlink
20+
30b9c0ed4b1039dbd99f3fb537b84ca507e0549d refs/heads/symlink-loop
21+
41489b7be5c2244d2b7b524dcb31caf3bd1f9ccc refs/heads/txt

0 commit comments

Comments
 (0)