MCPcopy Create free account
hub / github.com/cli/cli / TestRunItemEdit_InvalidID

Function TestRunItemEdit_InvalidID

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

Source from the content-addressed store, hash-verified

759}
760
761func TestRunItemEdit_InvalidID(t *testing.T) {
762 defer gock.Off()
763 // gock.Observe(gock.DumpRequest)
764
765 client := queries.NewTestClient()
766 config := editItemConfig{
767 opts: editItemOpts{
768 title: "a title",
769 titleChanged: true,
770 body: "a new body",
771 bodyChanged: true,
772 itemID: "item_id",
773 },
774 client: client,
775 }
776
777 err := runEditItem(config)
778 assert.Error(t, err, "ID must be the ID of the draft issue content which is prefixed with `DI_`")
779}
780
781func TestRunItemEdit_Clear(t *testing.T) {
782 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