cyberark/secretless-broker

View on GitHub
internal/summon/command/command_test.go

Summary

Maintainability
A
0 mins
Test Coverage
package command

import (
    "testing"

    "github.com/stretchr/testify/assert"
)

func Test_convertSubsToMap(t *testing.T) {
    expected := map[string]string{"foo": "bar=foo", "bar": "foo=bar"}
    actual := convertSubsToMap([]string{"foo=bar=foo", "bar=foo=bar"})

    assert.Equal(t, expected, actual)
}