Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// AnyAttributeTests.swift
// AnyAttributeCompatibilityTests.swift
// OpenGraphCompatibilityTests

import Testing
Expand All @@ -9,7 +9,7 @@ import Testing
// Report to upstream for investigation when we bump to 5.10
#if canImport(Darwin)
@Suite(.disabled(if: !compatibilityTestEnabled, "Attribute is not implemented"))
final class AnyAttributeTests: AttributeTestBase {
final class AnyAttributeCompatibilityTests: AttributeTestBase {
@Test
func constantValue() throws {
let attributeNil = AnyAttribute.nil
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
//
// AttributeTests.swift
// AttributeCompatibilityTests.swift
// OpenGraphCompatibilityTests

import Testing

#if canImport(Darwin)
@Suite(.disabled(if: !compatibilityTestEnabled, "Attribute is not implemented"))
final class AttributeTests: AttributeTestBase {
final class AttributeCompatibilityTests: AttributeTestBase {
@Test
func initWithValue() {
let intAttribute = Attribute(value: 0)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// ExternalTests.swift
// ExternalCompatibilityTests.swift
// OpenGraphCompatibilityTests

import Testing
Expand All @@ -9,7 +9,7 @@ import Testing
// Report to upstream for investigation when we bump to 5.10
#if canImport(Darwin)
@Suite(.disabled(if: !compatibilityTestEnabled, "Attribute is not implemented"))
final class ExternalTests: AttributeTestBase {
final class ExternalCompatibilityTests: AttributeTestBase {
@Test
func example() throws {
let type = External<Int>.self
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
//
// FocusTests.swift
// FocusCompatibilityTests.swift
// OpenGraphCompatibilityTests

import Testing

#if canImport(Darwin)
@Suite(.disabled(if: !compatibilityTestEnabled, "Attribute is not implemented"))
final class FocusTests: AttributeTestBase {
final class FocusCompatibilityTests: AttributeTestBase {
struct Demo {
var a: Int
var b: Double
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
//
// PointerOffsetTests.swift
// PointerOffsetCompatibilityTests.swift
// OpenGraphCompatibilityTests

import RealModule
import Testing

struct PointerOffsetTests {
struct PointerOffsetCompatibilityTests {
@Test
func plainInitAndProperty() {
typealias Base = Tuple<Int, Int>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
//
// IndirectAttributeTests.swift
// IndirectAttributeCompatibilityTests.swift
// OpenGraphCompatibilityTests

import Testing

#if canImport(Darwin)
@Suite(.disabled(if: !compatibilityTestEnabled, "IndirectAttribute is not implemented"))
final class IndirectAttributeTests: AttributeTestBase {
final class IndirectAttributeCompatibilityTests: AttributeTestBase {
@Test
func basic() {
let source = Attribute(value: 0)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
//
// AnyOptionalAttributeTests.swift
// AnyOptionalAttributeCompatibilityTests.swift
// OpenGraphCompatibilityTests

import Testing

#if canImport(Darwin)
@Suite(.disabled(if: !compatibilityTestEnabled, "AnyOptionalAttribute is not implemented"))
final class AnyOptionalAttributeTests: AttributeTestBase {
final class AnyOptionalAttributeCompatibilityTests: AttributeTestBase {
@Test
func basicInit() {
let o1 = AnyOptionalAttribute()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
//
// OptionalAttributeTests.swift
// OptionalAttributeCompatibilityTests.swift
// OpenGraphCompatibilityTests

import Testing

#if canImport(Darwin)
@Suite(.disabled(if: !compatibilityTestEnabled, "OptionalAttribute is not implemented"))
final class OptionalAttributeTests: AttributeTestBase {
final class OptionalAttributeCompatibilityTests: AttributeTestBase {
@Test
func basicInit() {
let ao1 = AnyOptionalAttribute()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
//
// MapTests.swift
// MapCompatibilityTests.swift
// OpenGraphCompatibilityTests

import Testing

@Suite(.disabled(if: !compatibilityTestEnabled))
final class MapTests: AttributeTestBase {
final class MapCompatibilityTests: AttributeTestBase {
@Test
func description() throws {
let map = Map(.init(value: 2)) { $0.description }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
//
// RuleTests.swift
// RuleCompatibilityTests.swift
// OpenGraphCompatibilityTests

import Testing

struct RuleTests {
struct RuleCompatibilityTests {
@Test
func ruleInitialValue() throws {
struct A: Rule {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
//
// AnyWeakAttributeTests.swift
// AnyWeakAttributeCompatibilityTests.swift
// OpenGraphCompatibilityTests

import Testing

#if canImport(Darwin)

@Suite(.enabled(if: compatibilityTestEnabled))
final class AnyWeakAttributeTests: AttributeTestBase {
final class AnyWeakAttributeCompatibilityTests: AttributeTestBase {
@Test
func basic() {
let w1 = AnyWeakAttribute(nil)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
//
// WeakAttributeTests.swift
// WeakAttributeCompatibilityTests.swift
// OpenGraphCompatibilityTests

import Testing

#if canImport(Darwin)
@Suite(.enabled(if: compatibilityTestEnabled))
final class WeakAttributeTests: AttributeTestBase {
final class WeakAttributeCompatibilityTests: AttributeTestBase {
@Test
func initTest() {
let _ = WeakAttribute<Int>()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
//
// CompareValuesTests.swift
// CompareValuesCompatibilityTests.swift
// OpenGraphCompatibilityTests

import Testing

@Suite(.disabled(if: !compatibilityTestEnabled, "OGCompareValues is not implemented"))
struct CompareValuesTests {
struct CompareValuesCompatibilityTests {
@Test
func intCompare() throws {
#expect(compareValues(1, 1) == true)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
//
// UniqueIDTests.swift
// UniqueIDCompatibilityTests.swift
// OpenGraphCompatibilityTests

import Testing

struct UniqueIDTests {
struct UniqueIDCompatibilityTests {
@Test
func uniqueID() throws {
let initialID = makeUniqueID()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
//
// GraphTests.swift
// GraphCompatibilityTests.swift
// OpenGraphCompatibilityTests

import Testing
import Foundation

struct GraphTests {
struct GraphCompatibilityTests {
@Test
func graphCreate() throws {
_ = Graph()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
//
// GraphDescriptionTests.swift
// GraphDescriptionCompatibilityTests.swift
// OpenGraphCompatibilityTests

import Testing

#if canImport(Darwin)
struct GraphDescriptionTests {
struct GraphDescriptionCompatibilityTests {
@Test
func format() {
#expect(Graph.descriptionFormat as String == "format")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
//
// GraphTracingTests.swift
// GraphTracingCompatibilityTests.swift
// OpenGraphCompatibilityTests

import Testing

struct GraphTracingTests {
struct GraphTracingCompatibilityTests {
@Test
func tracing() {
let graph = Graph()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
//
// SubgraphTests.swift
// SubgraphCompatibilityTests.swift
// OpenGraphCompatibilityTests

import Testing

@Suite(.enabled(if: compatibilityTestEnabled))
struct SubgraphTests {
struct SubgraphCompatibilityTests {
@Test
func shouldRecordTree() {
let key = compatibilityTestEnabled ? "AG_TREE" : "OG_TREE"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
//
// MetadataTests.swift
// MetadataCompatibilityTests.swift
// OpenGraphCompatibilityTests

import Testing

@Suite(.enabled(if: swiftToolchainSupported))
struct MetadataTests {
struct MetadataCompatibilityTests {
class T1 {
var a = 0
var b: Double = 0
Expand Down Expand Up @@ -153,9 +153,9 @@ struct MetadataTests {

@Test(.disabled(if: !compatibilityTestEnabled, "Metadata is not implemented"))
func description() {
#expect(Metadata(T1.self).description == "MetadataTests.T1")
#expect(Metadata(T2.self).description == "MetadataTests.T2")
#expect(Metadata(T3.self).description == "MetadataTests.T3")
#expect(Metadata(T1.self).description == "MetadataCompatibilityTests.T1")
#expect(Metadata(T2.self).description == "MetadataCompatibilityTests.T2")
#expect(Metadata(T3.self).description == "MetadataCompatibilityTests.T3")
}

@Test(.disabled(if: !compatibilityTestEnabled, "Metadata is not implemented"))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
//
// TupleTypeTests.swift
// TupleTypeCompatibilityTests.swift
// OpenGraphCompatibilityTests

import Testing

@Suite(.enabled(if: swiftToolchainSupported))
struct TupleTypeTests {
struct TupleTypeCompatibilityTests {
class T1 {
var a = 0
var b: Double = 0
Expand Down Expand Up @@ -141,7 +141,7 @@ struct TupleTypeTests {
}

@Suite(.enabled(if: swiftToolchainSupported))
struct UnsafeMutableTupleTests {
struct UnsafeMutableTupleCompatibilityTests {
class T1 {
var a = 0
}
Expand Down