We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f54b875 commit 8278ac9Copy full SHA for 8278ac9
models/attachment_test.go
@@ -15,6 +15,7 @@ func TestIncreaseDownloadCount(t *testing.T) {
15
16
attachment, err := GetAttachmentByUUID("1234567890")
17
assert.NoError(t, err)
18
+ assert.Equal(t, int64(0), attachment.DownloadCount)
19
20
// increase download count
21
err = attachment.IncreaseDownloadCount()
0 commit comments