Documentation
¶
Index ¶
- func GenerateFakeRepo(r *repo.Repo, size int) (cid.Cid, error)
- func MakeRandomPost() string
- func RandAction() string
- func RandFakeAtUri(collection, rkey string) string
- func RandFakeCid() cid.Cid
- func RandSentence(words []string, maxl int) string
- func ReadWords() ([]string, error)
- func TestPLC(t *testing.T) *plc.FakeDid
- type EventStream
- type TestPDS
- func (tp *TestPDS) BumpLimits(t *testing.T, b *TestRelay)
- func (tp *TestPDS) Cleanup()
- func (tp *TestPDS) DeactivateRepo(t *testing.T, did string)
- func (tp *TestPDS) HTTPHost() string
- func (tp *TestPDS) MustNewUser(t *testing.T, handle string) *TestUser
- func (tp *TestPDS) NewUser(handle string) (*TestUser, error)
- func (tp *TestPDS) RawHost() string
- func (tp *TestPDS) ReactivateRepo(t *testing.T, did string)
- func (tp *TestPDS) RequestScraping(t *testing.T, b *TestRelay)
- func (tp *TestPDS) Run(t *testing.T)
- func (tp *TestPDS) SuspendRepo(t *testing.T, did string)
- func (tp *TestPDS) TakedownRepo(t *testing.T, did string)
- type TestRelay
- type TestUser
- func (u *TestUser) ChangeHandle(t *testing.T, nhandle string)
- func (u *TestUser) DID() string
- func (u *TestUser) Follow(t *testing.T, did string) string
- func (u *TestUser) GetFeed(t *testing.T) []*bsky.FeedDefs_FeedViewPost
- func (u *TestUser) Like(t *testing.T, post *atproto.RepoStrongRef)
- func (u *TestUser) Post(t *testing.T, body string) *atproto.RepoStrongRef
- func (u *TestUser) Reply(t *testing.T, replyto, root *atproto.RepoStrongRef, body string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeRandomPost ¶
func MakeRandomPost() string
func RandAction ¶
func RandAction() string
func RandFakeAtUri ¶
func RandFakeCid ¶
func RandFakeCid() cid.Cid
func RandSentence ¶
Types ¶
type EventStream ¶
type EventStream struct { Lk sync.Mutex Events []*events.XRPCStreamEvent Cancel func() Cur int }
func (*EventStream) All ¶
func (es *EventStream) All() []*events.XRPCStreamEvent
func (*EventStream) Next ¶
func (es *EventStream) Next() *events.XRPCStreamEvent
func (*EventStream) WaitFor ¶
func (es *EventStream) WaitFor(n int) []*events.XRPCStreamEvent
type TestPDS ¶
type TestPDS struct {
// contains filtered or unexported fields
}
func (*TestPDS) HTTPHost ¶
HTTPHost returns a URL string that the PDS server is running at with the scheme set for HTTP
type TestRelay ¶
type TestRelay struct {
// contains filtered or unexported fields
}
func MustSetupRelay ¶
func SetupRelay ¶
Click to show internal directories.
Click to hide internal directories.