MCPcopy
hub / github.com/cli/cli / TestRunItemEdit_InvalidID

Function TestRunItemEdit_InvalidID

pkg/cmd/project/item-edit/item_edit_test.go:701–719  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

699}
700
701func TestRunItemEdit_InvalidID(t *testing.T) {
702 defer gock.Off()
703 // gock.Observe(gock.DumpRequest)
704
705 client := queries.NewTestClient()
706 config := editItemConfig{
707 opts: editItemOpts{
708 title: "a title",
709 titleChanged: true,
710 body: "a new body",
711 bodyChanged: true,
712 itemID: "item_id",
713 },
714 client: client,
715 }
716
717 err := runEditItem(config)
718 assert.Error(t, err, "ID must be the ID of the draft issue content which is prefixed with `DI_`")
719}
720
721func TestRunItemEdit_Clear(t *testing.T) {
722 defer gock.Off()

Callers

nothing calls this directly

Calls 3

NewTestClientFunction · 0.92
runEditItemFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected