Files
athens/pkg/index/mem/mem_test.go
Marwan Sulaiman 52934cfa46 implement /index endpoint (#1630)
* implement /index endpoint

* rename to Module to Path
2020-06-24 14:29:30 -04:00

21 lines
330 B
Go

package mem
import (
"testing"
"github.com/gomods/athens/pkg/index"
"github.com/gomods/athens/pkg/index/compliance"
)
func TestMem(t *testing.T) {
indexer := &indexer{}
compliance.RunTests(t, indexer, indexer.clear)
}
func (i *indexer) clear() error {
i.mu.Lock()
i.lines = []*index.Line{}
i.mu.Unlock()
return nil
}