mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
21 lines
413 B
Go
21 lines
413 B
Go
package sandbox
|
|||
|
|
|
||
|
|
import (
|
||
|
|
"testing"
|
||
|
|
|
||
|
|
"github.com/stretchr/testify/assert"
|
||
|
|
)
|
||
|
|
|
||
|
|
func TestExecutionResultScrubbedEnvCount(t *testing.T) {
|
||
|
|
r := NewExecutionResult()
|
||
|
|
assert.Equal(t, 0, r.ScrubbedEnvCount())
|
||
|
|
|
||
|
|
r.SetScrubbedEnvCount(3)
|
||
|
|
assert.Equal(t, 3, r.ScrubbedEnvCount())
|
||
|
|
}
|
||
|
|
|
||
|
|
func TestExecutionResultScrubbedEnvCountNilReceiver(t *testing.T) {
|
||
|
|
var r *ExecutionResult
|
||
|
|
assert.Equal(t, 0, r.ScrubbedEnvCount())
|
||
|
|
}
|