HashOf implements the interface objinterface.RootObject.
(ctx context.Context)
| 397 | |
| 398 | // HashOf implements the interface objinterface.RootObject. |
| 399 | func (function Function) HashOf(ctx context.Context) (hash.Hash, error) { |
| 400 | data, err := function.Serialize(ctx) |
| 401 | if err != nil { |
| 402 | return hash.Hash{}, err |
| 403 | } |
| 404 | return hash.Of(data), nil |
| 405 | } |
| 406 | |
| 407 | // Name implements the interface objinterface.RootObject. |
| 408 | func (function Function) Name() doltdb.TableName { |
no test coverage detected