MCPcopy Index your code
hub / github.com/apache/casbin / HasOperations

Method HasOperations

transaction.go:396–400  ·  view source on GitHub ↗

HasOperations returns true if the transaction has any buffered operations.

()

Source from the content-addressed store, hash-verified

394
395// HasOperations returns true if the transaction has any buffered operations.
396func (tx *Transaction) HasOperations() bool {
397 tx.mutex.RLock()
398 defer tx.mutex.RUnlock()
399 return tx.buffer.HasOperations()
400}
401
402// OperationCount returns the number of buffered operations in the transaction.
403func (tx *Transaction) OperationCount() int {

Callers 2

TestTransactionBufferFunction · 0.45
CommitMethod · 0.45

Calls

no outgoing calls

Tested by 1

TestTransactionBufferFunction · 0.36