diff options
| author | Shulhan <ms@kilabit.info> | 2025-10-03 00:15:29 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2025-10-03 00:15:29 +0700 |
| commit | 1003a18b85cffac4b9a92ee787fd8a9bdfca072d (patch) | |
| tree | 2090d7c2b84dbd4cc39956145af3c070ba98f7ee /awwan_local_test.go | |
| parent | 276096698be34a7c629b3fe7bfd79c48e1c24921 (diff) | |
| download | awwan-1003a18b85cffac4b9a92ee787fd8a9bdfca072d.tar.xz | |
all: add option "$noparse" for magic "#put" command
The "$noparse" option allow copying file without reading and parsing
the input file.
Diffstat (limited to 'awwan_local_test.go')
| -rw-r--r-- | awwan_local_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/awwan_local_test.go b/awwan_local_test.go index a36be2e..2dd590a 100644 --- a/awwan_local_test.go +++ b/awwan_local_test.go @@ -313,6 +313,12 @@ func TestAwwanLocal_Put(t *testing.T) { lineRange: `12`, fileDest: filepath.Join(baseDir, `tmp`, `put_with_owner.txt`), expError: `Local: Copy: chown audio:audio: exit status 1`, + }, { + desc: `With $noparse`, + lineRange: `18`, + fileDest: filepath.Join(baseDir, `tmp`, `plain_noparse.txt`), + expContent: string(tdata.Output[`tmp/plain_noparse.txt`]), + expMode: 0600, }} var ( |
