MCPcopy Index your code
hub / github.com/getsops/sops / TestDecrypt

Function TestDecrypt

sops_test.go:739–845  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

737}
738
739func TestDecrypt(t *testing.T) {
740 branches := TreeBranches{
741 TreeBranch{
742 TreeItem{
743 Key: "foo",
744 Value: "bar",
745 },
746 TreeItem{
747 Key: "baz",
748 Value: TreeBranch{
749 TreeItem{
750 Key: "bar",
751 Value: "5",
752 },
753 },
754 },
755 TreeItem{
756 Key: "bar",
757 Value: "false",
758 },
759 TreeItem{
760 Key: "foobar",
761 Value: "2.12",
762 },
763 TreeItem{
764 Key: "barfoo",
765 Value: nil,
766 },
767 },
768 TreeBranch{
769 TreeItem{
770 Key: "foo",
771 Value: "bar",
772 },
773 TreeItem{
774 Key: "baz",
775 Value: TreeBranch{
776 TreeItem{
777 Key: "bar",
778 Value: "6",
779 },
780 },
781 },
782 },
783 TreeBranch{
784 TreeItem{
785 Key: "foo3",
786 Value: "bar",
787 },
788 },
789 }
790 expected := TreeBranches{
791 TreeBranch{
792 TreeItem{
793 Key: "foo",
794 Value: "a",
795 },
796 TreeItem{

Callers

nothing calls this directly

Calls 1

DecryptMethod · 0.95

Tested by

no test coverage detected