github.com/opentofu/opentofu@v1.7.1/internal/encryption/keyprovider/pbkdf2/descriptor_test.go (about)

     1  // Copyright (c) The OpenTofu Authors
     2  // SPDX-License-Identifier: MPL-2.0
     3  // Copyright (c) 2023 HashiCorp, Inc.
     4  // SPDX-License-Identifier: MPL-2.0
     5  
     6  package pbkdf2_test
     7  
     8  import (
     9  	"testing"
    10  
    11  	"github.com/opentofu/opentofu/internal/encryption/keyprovider/pbkdf2"
    12  )
    13  
    14  func TestDescriptor_ID(t *testing.T) {
    15  	if id := pbkdf2.New().ID(); id != "pbkdf2" {
    16  		t.Fatalf("incorrect ID: %s", id)
    17  	}
    18  }