(raw string, scope memcontract.Scope)
| 5552 | } |
| 5553 | |
| 5554 | func nativeMemoryTypeForScope(raw string, scope memcontract.Scope) memcontract.Type { |
| 5555 | memoryType := memcontract.Type(strings.TrimSpace(raw)).Normalize() |
| 5556 | if memoryType != "" { |
| 5557 | return memoryType |
| 5558 | } |
| 5559 | switch scope.Normalize() { |
| 5560 | case memcontract.ScopeWorkspace: |
| 5561 | return memcontract.TypeProject |
| 5562 | default: |
| 5563 | return memcontract.TypeUser |
| 5564 | } |
| 5565 | } |
| 5566 | |
| 5567 | func nativeMemoryDecisionResult(result memorypkg.DecisionApplyResult) (toolspkg.ToolResult, error) { |
| 5568 | decision := redactNativeMemoryDecision(result.Decision) |
no test coverage detected