logging: rename crypto scope to random (#1070)
This is to avoid a collision with an emerging wasi-crypto. They will have both wasi-random and wasi-crypto Signed-off-by: Adrian Cole <adrian@tetrate.io>
This commit is contained in:
@@ -52,8 +52,8 @@ func TestLogScopes_String(t *testing.T) {
|
||||
{name: "none", scopes: LogScopeNone, expected: ""},
|
||||
{name: "any", scopes: LogScopeAll, expected: "all"},
|
||||
{name: "filesystem", scopes: LogScopeFilesystem, expected: "filesystem"},
|
||||
{name: "crypto", scopes: LogScopeCrypto, expected: "crypto"},
|
||||
{name: "filesystem|crypto", scopes: LogScopeFilesystem | LogScopeCrypto, expected: "filesystem|crypto"},
|
||||
{name: "random", scopes: LogScopeRandom, expected: "random"},
|
||||
{name: "filesystem|random", scopes: LogScopeFilesystem | LogScopeRandom, expected: "filesystem|random"},
|
||||
{name: "undefined", scopes: 1 << 3, expected: fmt.Sprintf("<unknown=%d>", (1 << 3))},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user