Download ledger/annotations_test.go from Leon4gr45/openmeter: direct link, hf CLI and curl.
- Browser
- Download file 398 Bytes
-
https://huggingface.co/spaces/Leon4gr45/openmeter/resolve/main/ledger/annotations_test.go
- Command line
-
hf download hf://spaces/Leon4gr45/openmeter/ledger/annotations_test.go
-
curl -L -o annotations_test.go https://huggingface.co/spaces/Leon4gr45/openmeter/resolve/main/ledger/annotations_test.go
398 Bytes
| package ledger | |
| import ( | |
| "testing" | |
| "github.com/stretchr/testify/require" | |
| ) | |
| func TestTransactionTemplateCodeAnnotations(t *testing.T) { | |
| t.Parallel() | |
| annotations := TransactionAnnotations("customer.receivable.issue", TransactionDirectionForward) | |
| code, err := TransactionTemplateCodeFromAnnotations(annotations) | |
| require.NoError(t, err) | |
| require.Equal(t, "customer.receivable.issue", code) | |
| } | |