Add file header via swift format
This commit is contained in:
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
@@ -14,6 +14,23 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
macOS:
|
||||||
|
runs-on: macOS-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: SPM tests
|
||||||
|
run: swift test --enable-code-coverage --sanitize=thread
|
||||||
|
- name: Convert coverage files
|
||||||
|
run: |
|
||||||
|
xcrun llvm-cov export -format "lcov" \
|
||||||
|
.build/debug/hummingbird-mustachePackageTests.xctest/Contents/MacOs/hummingbird-mustachePackageTests \
|
||||||
|
-ignore-filename-regex="\/Tests\/" \
|
||||||
|
-instr-profile=.build/debug/codecov/default.profdata > info.lcov
|
||||||
|
- name: Upload to codecov.io
|
||||||
|
uses: codecov/codecov-action@v1
|
||||||
|
with:
|
||||||
|
file: info.lcov
|
||||||
linux:
|
linux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
|
|||||||
7
.github/workflows/nightly.yml
vendored
7
.github/workflows/nightly.yml
vendored
@@ -6,6 +6,13 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
macOS:
|
||||||
|
runs-on: macOS-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: SPM tests
|
||||||
|
run: swift test --sanitize=thread
|
||||||
linux:
|
linux:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
|
|||||||
@@ -21,3 +21,6 @@
|
|||||||
--wraparguments before-first
|
--wraparguments before-first
|
||||||
--wrapparameters before-first
|
--wrapparameters before-first
|
||||||
--wrapcollections before-first
|
--wrapcollections before-first
|
||||||
|
|
||||||
|
#file header
|
||||||
|
--header "//===----------------------------------------------------------------------===//\n//\n// This source file is part of the Hummingbird server framework project\n//\n// Copyright (c) {created.year}-{year} the Hummingbird authors\n// Licensed under Apache License v2.0\n//\n// See LICENSE.txt for license information\n// See hummingbird/CONTRIBUTORS.txt for the list of Hummingbird authors\n//\n// SPDX-License-Identifier: Apache-2.0\n//\n//===----------------------------------------------------------------------===//"
|
||||||
|
|||||||
@@ -1,3 +1,17 @@
|
|||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
//
|
||||||
|
// This source file is part of the Hummingbird server framework project
|
||||||
|
//
|
||||||
|
// Copyright (c) 2021-2021 the Hummingbird authors
|
||||||
|
// Licensed under Apache License v2.0
|
||||||
|
//
|
||||||
|
// See LICENSE.txt for license information
|
||||||
|
// See hummingbird/CONTRIBUTORS.txt for the list of Hummingbird authors
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
//
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
/// Protocol for content types
|
/// Protocol for content types
|
||||||
public protocol HBMustacheContentType {
|
public protocol HBMustacheContentType {
|
||||||
/// escape text for this content type eg for HTML replace "<" with "<"
|
/// escape text for this content type eg for HTML replace "<" with "<"
|
||||||
|
|||||||
@@ -1,3 +1,17 @@
|
|||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
//
|
||||||
|
// This source file is part of the Hummingbird server framework project
|
||||||
|
//
|
||||||
|
// Copyright (c) 2021-2021 the Hummingbird authors
|
||||||
|
// Licensed under Apache License v2.0
|
||||||
|
//
|
||||||
|
// See LICENSE.txt for license information
|
||||||
|
// See hummingbird/CONTRIBUTORS.txt for the list of Hummingbird authors
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
//
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
/// Context while rendering mustache tokens
|
/// Context while rendering mustache tokens
|
||||||
struct HBMustacheContext {
|
struct HBMustacheContext {
|
||||||
let stack: [Any]
|
let stack: [Any]
|
||||||
|
|||||||
@@ -1,3 +1,17 @@
|
|||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
//
|
||||||
|
// This source file is part of the Hummingbird server framework project
|
||||||
|
//
|
||||||
|
// Copyright (c) 2021-2021 the Hummingbird authors
|
||||||
|
// Licensed under Apache License v2.0
|
||||||
|
//
|
||||||
|
// See LICENSE.txt for license information
|
||||||
|
// See hummingbird/CONTRIBUTORS.txt for the list of Hummingbird authors
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
//
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
|
|
||||||
/// Lambda function. Can add this to object being rendered to filter contents of objects.
|
/// Lambda function. Can add this to object being rendered to filter contents of objects.
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -1,3 +1,17 @@
|
|||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
//
|
||||||
|
// This source file is part of the Hummingbird server framework project
|
||||||
|
//
|
||||||
|
// Copyright (c) 2021-2021 the Hummingbird authors
|
||||||
|
// Licensed under Apache License v2.0
|
||||||
|
//
|
||||||
|
// See LICENSE.txt for license information
|
||||||
|
// See hummingbird/CONTRIBUTORS.txt for the list of Hummingbird authors
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
//
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
extension HBMustacheLibrary {
|
extension HBMustacheLibrary {
|
||||||
|
|||||||
@@ -1,3 +1,17 @@
|
|||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
//
|
||||||
|
// This source file is part of the Hummingbird server framework project
|
||||||
|
//
|
||||||
|
// Copyright (c) 2021-2021 the Hummingbird authors
|
||||||
|
// Licensed under Apache License v2.0
|
||||||
|
//
|
||||||
|
// See LICENSE.txt for license information
|
||||||
|
// See hummingbird/CONTRIBUTORS.txt for the list of Hummingbird authors
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
//
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
/// Class holding a collection of mustache templates.
|
/// Class holding a collection of mustache templates.
|
||||||
///
|
///
|
||||||
/// Each template can reference the others via a partial using the name the template is registered under
|
/// Each template can reference the others via a partial using the name the template is registered under
|
||||||
|
|||||||
@@ -1,4 +1,16 @@
|
|||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
//
|
||||||
|
// This source file is part of the Hummingbird server framework project
|
||||||
|
//
|
||||||
|
// Copyright (c) 2021-2021 the Hummingbird authors
|
||||||
|
// Licensed under Apache License v2.0
|
||||||
|
//
|
||||||
|
// See LICENSE.txt for license information
|
||||||
|
// See hummingbird/CONTRIBUTORS.txt for the list of Hummingbird authors
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
//
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
extension Mirror {
|
extension Mirror {
|
||||||
/// Return value from Mirror given name
|
/// Return value from Mirror given name
|
||||||
|
|||||||
@@ -1,3 +1,16 @@
|
|||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
//
|
||||||
|
// This source file is part of the Hummingbird server framework project
|
||||||
|
//
|
||||||
|
// Copyright (c) 2021-2021 the Hummingbird authors
|
||||||
|
// Licensed under Apache License v2.0
|
||||||
|
//
|
||||||
|
// See LICENSE.txt for license information
|
||||||
|
// See hummingbird/CONTRIBUTORS.txt for the list of Hummingbird authors
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
//
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
/// Protocol for object that has a custom method for accessing their children, instead
|
/// Protocol for object that has a custom method for accessing their children, instead
|
||||||
/// of using Mirror
|
/// of using Mirror
|
||||||
|
|||||||
@@ -1,3 +1,17 @@
|
|||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
//
|
||||||
|
// This source file is part of the Hummingbird server framework project
|
||||||
|
//
|
||||||
|
// Copyright (c) 2021-2021 the Hummingbird authors
|
||||||
|
// Licensed under Apache License v2.0
|
||||||
|
//
|
||||||
|
// See LICENSE.txt for license information
|
||||||
|
// See hummingbird/CONTRIBUTORS.txt for the list of Hummingbird authors
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
//
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
/// Reader object for parsing String buffers
|
/// Reader object for parsing String buffers
|
||||||
|
|||||||
@@ -1,3 +1,16 @@
|
|||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
//
|
||||||
|
// This source file is part of the Hummingbird server framework project
|
||||||
|
//
|
||||||
|
// Copyright (c) 2021-2021 the Hummingbird authors
|
||||||
|
// Licensed under Apache License v2.0
|
||||||
|
//
|
||||||
|
// See LICENSE.txt for license information
|
||||||
|
// See hummingbird/CONTRIBUTORS.txt for the list of Hummingbird authors
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
//
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
/// Protocol for objects that can be rendered as a sequence in Mustache
|
/// Protocol for objects that can be rendered as a sequence in Mustache
|
||||||
protocol HBMustacheSequence {
|
protocol HBMustacheSequence {
|
||||||
|
|||||||
@@ -1,3 +1,16 @@
|
|||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
//
|
||||||
|
// This source file is part of the Hummingbird server framework project
|
||||||
|
//
|
||||||
|
// Copyright (c) 2021-2021 the Hummingbird authors
|
||||||
|
// Licensed under Apache License v2.0
|
||||||
|
//
|
||||||
|
// See LICENSE.txt for license information
|
||||||
|
// See hummingbird/CONTRIBUTORS.txt for the list of Hummingbird authors
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
//
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
/// Context that current object inside a sequence is being rendered in. Only relevant when rendering a sequence
|
/// Context that current object inside a sequence is being rendered in. Only relevant when rendering a sequence
|
||||||
struct HBMustacheSequenceContext: HBMustacheTransformable {
|
struct HBMustacheSequenceContext: HBMustacheTransformable {
|
||||||
|
|||||||
@@ -1,3 +1,16 @@
|
|||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
//
|
||||||
|
// This source file is part of the Hummingbird server framework project
|
||||||
|
//
|
||||||
|
// Copyright (c) 2021-2021 the Hummingbird authors
|
||||||
|
// Licensed under Apache License v2.0
|
||||||
|
//
|
||||||
|
// See LICENSE.txt for license information
|
||||||
|
// See hummingbird/CONTRIBUTORS.txt for the list of Hummingbird authors
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
//
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
extension String {
|
extension String {
|
||||||
private static let htmlEscapedCharacters: [Character: String] = [
|
private static let htmlEscapedCharacters: [Character: String] = [
|
||||||
|
|||||||
@@ -1,3 +1,16 @@
|
|||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
//
|
||||||
|
// This source file is part of the Hummingbird server framework project
|
||||||
|
//
|
||||||
|
// Copyright (c) 2021-2021 the Hummingbird authors
|
||||||
|
// Licensed under Apache License v2.0
|
||||||
|
//
|
||||||
|
// See LICENSE.txt for license information
|
||||||
|
// See hummingbird/CONTRIBUTORS.txt for the list of Hummingbird authors
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
//
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
extension HBMustacheTemplate {
|
extension HBMustacheTemplate {
|
||||||
/// Error return by `HBMustacheTemplate.parse`. Includes information about where error occurred
|
/// Error return by `HBMustacheTemplate.parse`. Includes information about where error occurred
|
||||||
|
|||||||
@@ -1,3 +1,16 @@
|
|||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
//
|
||||||
|
// This source file is part of the Hummingbird server framework project
|
||||||
|
//
|
||||||
|
// Copyright (c) 2021-2021 the Hummingbird authors
|
||||||
|
// Licensed under Apache License v2.0
|
||||||
|
//
|
||||||
|
// See LICENSE.txt for license information
|
||||||
|
// See hummingbird/CONTRIBUTORS.txt for the list of Hummingbird authors
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
//
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
extension HBMustacheTemplate {
|
extension HBMustacheTemplate {
|
||||||
/// Render template using object
|
/// Render template using object
|
||||||
|
|||||||
@@ -1,3 +1,17 @@
|
|||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
//
|
||||||
|
// This source file is part of the Hummingbird server framework project
|
||||||
|
//
|
||||||
|
// Copyright (c) 2021-2021 the Hummingbird authors
|
||||||
|
// Licensed under Apache License v2.0
|
||||||
|
//
|
||||||
|
// See LICENSE.txt for license information
|
||||||
|
// See hummingbird/CONTRIBUTORS.txt for the list of Hummingbird authors
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
//
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
/// Class holding Mustache template
|
/// Class holding Mustache template
|
||||||
public final class HBMustacheTemplate {
|
public final class HBMustacheTemplate {
|
||||||
/// Initialize template
|
/// Initialize template
|
||||||
|
|||||||
@@ -1,3 +1,17 @@
|
|||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
//
|
||||||
|
// This source file is part of the Hummingbird server framework project
|
||||||
|
//
|
||||||
|
// Copyright (c) 2021-2021 the Hummingbird authors
|
||||||
|
// Licensed under Apache License v2.0
|
||||||
|
//
|
||||||
|
// See LICENSE.txt for license information
|
||||||
|
// See hummingbird/CONTRIBUTORS.txt for the list of Hummingbird authors
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
//
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
/// Objects that can have a transforms run on them. Mustache transforms are specific to this implementation
|
/// Objects that can have a transforms run on them. Mustache transforms are specific to this implementation
|
||||||
/// of Mustache. They allow you to process objects before they are rendered.
|
/// of Mustache. They allow you to process objects before they are rendered.
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -1,3 +1,17 @@
|
|||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
//
|
||||||
|
// This source file is part of the Hummingbird server framework project
|
||||||
|
//
|
||||||
|
// Copyright (c) 2021-2021 the Hummingbird authors
|
||||||
|
// Licensed under Apache License v2.0
|
||||||
|
//
|
||||||
|
// See LICENSE.txt for license information
|
||||||
|
// See hummingbird/CONTRIBUTORS.txt for the list of Hummingbird authors
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
//
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
import HummingbirdMustache
|
import HummingbirdMustache
|
||||||
import XCTest
|
import XCTest
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,17 @@
|
|||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
//
|
||||||
|
// This source file is part of the Hummingbird server framework project
|
||||||
|
//
|
||||||
|
// Copyright (c) 2021-2021 the Hummingbird authors
|
||||||
|
// Licensed under Apache License v2.0
|
||||||
|
//
|
||||||
|
// See LICENSE.txt for license information
|
||||||
|
// See hummingbird/CONTRIBUTORS.txt for the list of Hummingbird authors
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
//
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
@testable import HummingbirdMustache
|
@testable import HummingbirdMustache
|
||||||
import XCTest
|
import XCTest
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,17 @@
|
|||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
//
|
||||||
|
// This source file is part of the Hummingbird server framework project
|
||||||
|
//
|
||||||
|
// Copyright (c) 2021-2021 the Hummingbird authors
|
||||||
|
// Licensed under Apache License v2.0
|
||||||
|
//
|
||||||
|
// See LICENSE.txt for license information
|
||||||
|
// See hummingbird/CONTRIBUTORS.txt for the list of Hummingbird authors
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
//
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
@testable import HummingbirdMustache
|
@testable import HummingbirdMustache
|
||||||
import XCTest
|
import XCTest
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,17 @@
|
|||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
//
|
||||||
|
// This source file is part of the Hummingbird server framework project
|
||||||
|
//
|
||||||
|
// Copyright (c) 2021-2021 the Hummingbird authors
|
||||||
|
// Licensed under Apache License v2.0
|
||||||
|
//
|
||||||
|
// See LICENSE.txt for license information
|
||||||
|
// See hummingbird/CONTRIBUTORS.txt for the list of Hummingbird authors
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
//
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
#if os(Linux)
|
#if os(Linux)
|
||||||
import FoundationNetworking
|
import FoundationNetworking
|
||||||
|
|||||||
@@ -1,3 +1,17 @@
|
|||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
//
|
||||||
|
// This source file is part of the Hummingbird server framework project
|
||||||
|
//
|
||||||
|
// Copyright (c) 2021-2021 the Hummingbird authors
|
||||||
|
// Licensed under Apache License v2.0
|
||||||
|
//
|
||||||
|
// See LICENSE.txt for license information
|
||||||
|
// See hummingbird/CONTRIBUTORS.txt for the list of Hummingbird authors
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
//
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
@testable import HummingbirdMustache
|
@testable import HummingbirdMustache
|
||||||
import XCTest
|
import XCTest
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,17 @@
|
|||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
//
|
||||||
|
// This source file is part of the Hummingbird server framework project
|
||||||
|
//
|
||||||
|
// Copyright (c) 2021-2021 the Hummingbird authors
|
||||||
|
// Licensed under Apache License v2.0
|
||||||
|
//
|
||||||
|
// See LICENSE.txt for license information
|
||||||
|
// See hummingbird/CONTRIBUTORS.txt for the list of Hummingbird authors
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
//
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
@testable import HummingbirdMustache
|
@testable import HummingbirdMustache
|
||||||
import XCTest
|
import XCTest
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,17 @@
|
|||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
//
|
||||||
|
// This source file is part of the Hummingbird server framework project
|
||||||
|
//
|
||||||
|
// Copyright (c) 2021-2021 the Hummingbird authors
|
||||||
|
// Licensed under Apache License v2.0
|
||||||
|
//
|
||||||
|
// See LICENSE.txt for license information
|
||||||
|
// See hummingbird/CONTRIBUTORS.txt for the list of Hummingbird authors
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
//
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
import HummingbirdMustache
|
import HummingbirdMustache
|
||||||
import XCTest
|
import XCTest
|
||||||
|
|
||||||
@@ -132,7 +146,7 @@ final class TransformTests: XCTestCase {
|
|||||||
let template = try HBMustacheTemplate(string: """
|
let template = try HBMustacheTemplate(string: """
|
||||||
{{#empty(array)}}Array{{/empty(array)}}{{#empty(dictionary)}}Dictionary{{/empty(dictionary)}}
|
{{#empty(array)}}Array{{/empty(array)}}{{#empty(dictionary)}}Dictionary{{/empty(dictionary)}}
|
||||||
""")
|
""")
|
||||||
let object: [String: Any] = ["array":[], "dictionary":[:]]
|
let object: [String: Any] = ["array": [], "dictionary": [:]]
|
||||||
XCTAssertEqual(template.render(object), "ArrayDictionary")
|
XCTAssertEqual(template.render(object), "ArrayDictionary")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1 +1,13 @@
|
|||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
//
|
||||||
|
// This source file is part of the Hummingbird server framework project
|
||||||
|
//
|
||||||
|
// Copyright (c) 2021-2021 the Hummingbird authors
|
||||||
|
// Licensed under Apache License v2.0
|
||||||
|
//
|
||||||
|
// See LICENSE.txt for license information
|
||||||
|
// See hummingbird/CONTRIBUTORS.txt for the list of Hummingbird authors
|
||||||
|
//
|
||||||
|
// SPDX-License-Identifier: Apache-2.0
|
||||||
|
//
|
||||||
|
//===----------------------------------------------------------------------===//
|
||||||
|
|||||||
Reference in New Issue
Block a user