MCPcopy Create free account
hub / github.com/bytebase/bytebase / TestNewProject

Function TestNewProject

backend/component/webhook/event_test.go:50–61  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

48}
49
50func TestNewProject(t *testing.T) {
51 a := require.New(t)
52 msg := &store.ProjectMessage{
53 ResourceID: "my-project",
54 Workspace: "ws-001",
55 Title: "My Project",
56 }
57 got := NewProject(msg)
58 a.Equal("my-project", got.ResourceID)
59 a.Equal("ws-001", got.Workspace)
60 a.Equal("My Project", got.Title)
61}
62
63func TestNewRollout(t *testing.T) {
64 a := require.New(t)

Callers

nothing calls this directly

Calls 2

NewProjectFunction · 0.85
EqualMethod · 0.65

Tested by

no test coverage detected