/*
 * Copyright 2010-2024 JetBrains s.r.o. and Kotlin Programming Language contributors.
 * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
 */

package org.jetbrains.kotlin.analysis.low.level.api.fir.diagnostic.compiler.based;

import com.intellij.testFramework.TestDataPath;
import org.jetbrains.kotlin.test.util.KtTestUtil;
import org.jetbrains.kotlin.test.TestMetadata;
import org.junit.jupiter.api.Test;

import java.io.File;
import java.util.regex.Pattern;

/** This class is generated by {@link org.jetbrains.kotlin.generators.tests.analysis.api.GenerateAnalysisApiTestsKt}. DO NOT MODIFY MANUALLY */
@SuppressWarnings("all")
@TestMetadata("plugins/scripting/scripting-tests/testData/diagnostics/testScripts")
@TestDataPath("$PROJECT_ROOT")
public class LLReversedScriptWithCustomDefDiagnosticsTestGenerated extends AbstractLLReversedScriptWithCustomDefDiagnosticsTest {
  @Test
  public void testAllFilesPresentInTestScripts() {
    KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("plugins/scripting/scripting-tests/testData/diagnostics/testScripts"), Pattern.compile("^(.+)\\.(kts)$"), Pattern.compile("^(.+)\\.(reversed|partialBody|fir|ll|latestLV)\\.kts?$"), true);
  }

  @Test
  @TestMetadata("conflictingImportsWithJava.test.kts")
  public void testConflictingImportsWithJava_test() {
    runTest("plugins/scripting/scripting-tests/testData/diagnostics/testScripts/conflictingImportsWithJava.test.kts");
  }

  @Test
  @TestMetadata("explicitApi.test.kts")
  public void testExplicitApi_test() {
    runTest("plugins/scripting/scripting-tests/testData/diagnostics/testScripts/explicitApi.test.kts");
  }

  @Test
  @TestMetadata("invokeResolve.test.kts")
  public void testInvokeResolve_test() {
    runTest("plugins/scripting/scripting-tests/testData/diagnostics/testScripts/invokeResolve.test.kts");
  }

  @Test
  @TestMetadata("providedPropertiesShadowing.test.kts")
  public void testProvidedPropertiesShadowing_test() {
    runTest("plugins/scripting/scripting-tests/testData/diagnostics/testScripts/providedPropertiesShadowing.test.kts");
  }

  @Test
  @TestMetadata("providedProperties.test.kts")
  public void testProvidedProperties_test() {
    runTest("plugins/scripting/scripting-tests/testData/diagnostics/testScripts/providedProperties.test.kts");
  }

  @Test
  @TestMetadata("resultVisibilityTest.test.kts")
  public void testResultVisibilityTest_test() {
    runTest("plugins/scripting/scripting-tests/testData/diagnostics/testScripts/resultVisibilityTest.test.kts");
  }

  @Test
  @TestMetadata("simple.test.kts")
  public void testSimple_test() {
    runTest("plugins/scripting/scripting-tests/testData/diagnostics/testScripts/simple.test.kts");
  }
}
