MCPcopy
hub / github.com/dgraph-io/dgraph / copy

Function copy

audit/run_test.go:19–25  ·  view source on GitHub ↗

we will truncate copy of encrypted audit log file

(t *testing.T, src string, dst string)

Source from the content-addressed store, hash-verified

17
18// we will truncate copy of encrypted audit log file
19func copy(t *testing.T, src string, dst string) {
20 // could also us io.CopyN but this is a small file
21 data, err := os.ReadFile(src)
22 require.NoError(t, err)
23 err = os.WriteFile(dst, data, 0666)
24 require.NoError(t, err)
25}
26
27// check whether we can properly decrypt an encryped audit log that is truncated at the tail
28func TestDecrypt(t *testing.T) {

Callers 15

CopyFacetsFunction · 0.85
BatchAndSendMessagesMethod · 0.85
marshalVectorEntryFunction · 0.85
NextMethod · 0.85
marshalCountEntryFunction · 0.85
addCountEntryMethod · 0.85
marshalMapEntryFunction · 0.85
getIPsFromStringFunction · 0.85
TestDecryptFunction · 0.85
CopyToMethod · 0.85
ToHexFunction · 0.85
encryptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected