<commit_before>package aws

import (
	"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
	"testing"
)

func TestAccDataSourceAwsLocalGateways_basic(t *testing.T) {
	resource.ParallelTest(t, resource.TestCase{
		PreCheck:  func() { testAccPreCheck(t) },
		Providers: testAccProviders,
		Steps: []resource.TestStep{
			{
				Config: testAccDataSourceAwsLocalGatewaysConfig,
				Check: resource.ComposeTestCheckFunc(
					testAccCheckAwsVpcsDataSourceExists("data.aws_local_gateways.all"),
				),
			},
		},
	})
}
<commit_msg>Break dependency on VPC tests<commit_after>package aws

import (
	"fmt"
	"github.com/hashicorp/terraform-plugin-sdk/helper/resource"
	"github.com/hashicorp/terraform-plugin-sdk/terraform"
	"testing"
)

func TestAccDataSourceAwsLocalGateways_basic(t *testing.T) {
	resource.ParallelTest(t, resource.TestCase{
		PreCheck:  func() { testAccPreCheck(t) },
		Providers: testAccProviders,
		Steps: []resource.TestStep{
			{
				Config: testAccDataSourceAwsLocalGatewaysConfig,
				Check: resource.ComposeTestCheckFunc(
					testAccCheckAwsLocalGatewaysDataSourceExists("data.aws_local_gateways.all"),
				),
			},
		},
	})
}

func testAccCheckAwsLocalGatewaysDataSourceExists(n string) resource.TestCheckFunc {
	return func(s *terraform.State) error {
		rs, ok := s.RootModule().Resources[n]
		if !ok {
			return fmt.Errorf("Can't find aws_local_gateways data source: %s", n)
		}

		if rs.Primary.ID == "" {
			return fmt.Errorf("aws_local_gateways data source ID not set")
		}
		return nil
	}
}

{'fraction_non_alphanumeric': 0.11892247043363995, 'fraction_numerical': 0.0, 'mean_word_length': 4.903100775193798, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4812024', 'n_tokens_mistral': 579, 'n_tokens_neox': 534, 'n_words': 82}