MCPcopy Index your code
hub / github.com/couchbase/moss

github.com/couchbase/moss @v0.3.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.3.0 ↗ · + Follow
576 symbols 2,256 edges 48 files 287 documented · 50% 1 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Instructions for smat testing for moss

smat is a framework that provides state machine assisted fuzz testing.

To run the smat tests for moss...

Prerequisites

$ go get github.com/dvyukov/go-fuzz/go-fuzz
$ go get github.com/dvyukov/go-fuzz/go-fuzz-build

Steps

  1. Generate initial smat corpus:
    go test -tags=gofuzz -run=TestGenerateSmatCorpus
  1. Build go-fuzz test program with instrumentation:
    go-fuzz-build github.com/couchbase/moss
  1. Run go-fuzz:
    go-fuzz -bin=./moss-fuzz.zip -workdir=workdir/ -timeout=2000

Extension points exported contracts — how you extend this code

Snapshot (Interface)
A Snapshot is a stable view of a Collection for readers, isolated from concurrent mutation activity. [4 implementers]
api.go
SegmentMutator (Interface)
A SegmentMutator represents the mutation methods of a segment. [2 implementers]
segment.go
InitCloser (Interface)
An InitCloser holds onto an io.Closer, and is used for chaining io.Closer's. That is, we often want the closing of one [2 …
file.go
SegmentLoaderFunc (FuncType)
-------------------------------------------------------- A SegmentLoaderFunc is able to load a segment from a SegmentLoc
store_api.go
Iterator (Interface)
An Iterator allows enumeration of key-val entries. [4 implementers]
api.go
SegmentPersister (Interface)
A SegmentPersister represents a segment that can be persisted. [2 implementers]
segment.go
File (Interface)
The File interface is implemented by os.File. App specific implementations may add concurrency, caching, stats, fuzzing
file.go
SegmentPersisterFunc (FuncType)
A SegmentPersisterFunc is able to persist a segment to a file, and return a SegmentLoc describing it.
store_api.go

Core symbols most depended-on inside this repo

Close
called by 208
api.go
NewBatch
called by 66
api.go
ExecuteBatch
called by 61
api.go
Get
called by 59
api.go
Set
called by 55
api.go
Snapshot
called by 51
api.go
Next
called by 37
api.go
Current
called by 36
api.go

Shape

Method 289
Function 214
Struct 50
Interface 14
TypeAlias 5
FuncType 4

Languages

Go99%
Python1%

Modules by API surface

segment.go66 symbols
api.go48 symbols
persister_test.go39 symbols
store_test.go33 symbols
smat.go31 symbols
benchmark_test.go28 symbols
store_api.go27 symbols
store.go26 symbols
file.go26 symbols
dgm_moss_test.go25 symbols
collection.go23 symbols
benchmark_store_test.go20 symbols

Used by 1 indexed graphs manifest dependencies, hub-wide

For agents

$ claude mcp add moss \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact