LoadCollectionHash implements the interface objinterface.Collection.
(ctx context.Context, root objinterface.RootValue)
| 74 | |
| 75 | // LoadCollectionHash implements the interface objinterface.Collection. |
| 76 | func (*Collection) LoadCollectionHash(ctx context.Context, root objinterface.RootValue) (hash.Hash, error) { |
| 77 | m, ok, err := storage.GetProllyMap(ctx, root) |
| 78 | if err != nil || !ok { |
| 79 | return hash.Hash{}, err |
| 80 | } |
| 81 | return m.HashOf(), nil |
| 82 | } |
| 83 | |
| 84 | // LoadFunctions loads the functions collection from the given root. |
| 85 | func LoadFunctions(ctx context.Context, root objinterface.RootValue) (*Collection, error) { |
no test coverage detected