summaryrefslogtreecommitdiff
path: root/internal/cache/size.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/cache/size.go')
-rw-r--r--internal/cache/size.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/internal/cache/size.go b/internal/cache/size.go
index 29ab77fbf..49c2f4318 100644
--- a/internal/cache/size.go
+++ b/internal/cache/size.go
@@ -593,6 +593,29 @@ func sizeofReport() uintptr {
}))
}
+func sizeofSinBinStatus() uintptr {
+ return uintptr(size.Of(&gtsmodel.SinBinStatus{
+ ID: exampleID,
+ CreatedAt: exampleTime,
+ UpdatedAt: exampleTime,
+ URI: exampleURI,
+ URL: exampleURI,
+ Domain: exampleURI,
+ AccountURI: exampleURI,
+ InReplyToURI: exampleURI,
+ Content: exampleText,
+ AttachmentLinks: []string{exampleURI, exampleURI},
+ MentionTargetURIs: []string{exampleURI},
+ EmojiLinks: []string{exampleURI},
+ PollOptions: []string{exampleTextSmall, exampleTextSmall, exampleTextSmall, exampleTextSmall},
+ ContentWarning: exampleTextSmall,
+ Visibility: gtsmodel.VisibilityPublic,
+ Sensitive: util.Ptr(false),
+ Language: "en",
+ ActivityStreamsType: ap.ObjectNote,
+ }))
+}
+
func sizeofStatus() uintptr {
return uintptr(size.Of(&gtsmodel.Status{
ID: exampleID,