From 912e79e89d4e78e6aeb8246c172187df817c4c6d Mon Sep 17 00:00:00 2001 From: ascandone Date: Wed, 16 Oct 2024 10:27:52 +0200 Subject: [PATCH] chore: renamed machine file into numscript_runtime --- internal/controller/ledger/{machine.go => numscript_runtime.go} | 2 +- ...ne_generated_test.go => numscript_runtime_generated_test.go} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename internal/controller/ledger/{machine.go => numscript_runtime.go} (95%) rename internal/controller/ledger/{machine_generated_test.go => numscript_runtime_generated_test.go} (93%) diff --git a/internal/controller/ledger/machine.go b/internal/controller/ledger/numscript_runtime.go similarity index 95% rename from internal/controller/ledger/machine.go rename to internal/controller/ledger/numscript_runtime.go index 13ba97c1e..76f2e614c 100644 --- a/internal/controller/ledger/machine.go +++ b/internal/controller/ledger/numscript_runtime.go @@ -21,7 +21,7 @@ type NumscriptExecutionResult struct { AccountMetadata map[string]metadata.Metadata } -//go:generate mockgen -write_source_comment=false -write_package_comment=false -source machine.go -destination machine_generated_test.go -package ledger . Machine +//go:generate mockgen -write_source_comment=false -write_package_comment=false -source numscript_runtime.go -destination numscript_runtime_generated_test.go -package ledger . NumscriptRuntime type NumscriptRuntime interface { Execute(context.Context, TX, map[string]string) (*NumscriptExecutionResult, error) } diff --git a/internal/controller/ledger/machine_generated_test.go b/internal/controller/ledger/numscript_runtime_generated_test.go similarity index 93% rename from internal/controller/ledger/machine_generated_test.go rename to internal/controller/ledger/numscript_runtime_generated_test.go index 81f17bda4..a116d7d89 100644 --- a/internal/controller/ledger/machine_generated_test.go +++ b/internal/controller/ledger/numscript_runtime_generated_test.go @@ -2,7 +2,7 @@ // // Generated by this command: // -// mockgen -write_source_comment=false -write_package_comment=false -source machine.go -destination machine_generated_test.go -package ledger . Machine +// mockgen -write_source_comment=false -write_package_comment=false -source numscript_runtime.go -destination numscript_runtime_generated_test.go -package ledger . NumscriptRuntime package ledger import (