MCPcopy Create free account
hub / github.com/efectn/go-orm-benchmarks / SetRight

Method SetRight

bench/ent/mutation.go:349–351  ·  view source on GitHub ↗

SetRight sets the "right" field.

(b bool)

Source from the content-addressed store, hash-verified

347
348// SetRight sets the "right" field.
349func (m *ModelMutation) SetRight(b bool) {
350 m.right = &b
351}
352
353// Right returns the value of the "right" field in the mutation.
354func (m *ModelMutation) Right() (r bool, exists bool) {

Callers 6

SetFieldMethod · 0.95
InsertMethod · 0.45
InsertMultiMethod · 0.45
UpdateMethod · 0.45
ReadMethod · 0.45
ReadSliceMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected