< Summary

Class:GDX.Collections.ArrayHolder[T]
Assembly:GDX
File(s):./Packages/com.dotbunny.gdx/GDX/Collections/ArrayHolder.cs
Covered lines:1
Uncovered lines:0
Coverable lines:1
Total lines:20
Line coverage:100% (1 of 1)
Covered branches:0
Total branches:0
Covered methods:1
Total methods:1
Method coverage:100% (1 of 1)

Coverage History

File(s)

./Packages/com.dotbunny.gdx/GDX/Collections/ArrayHolder.cs

#LineLine coverage
 1// Copyright (c) 2020-2024 dotBunny Inc.
 2// dotBunny licenses this file to you under the BSL-1.0 license.
 3// See the LICENSE file in the project root for more information.
 4
 5using System;
 6
 7namespace GDX.Collections
 8{
 9    /// <summary>
 10    ///     A struct purely created to allow for serialization of multi-dimensional arrays.
 11    /// </summary>
 12    /// <typeparam name="T"></typeparam>
 13    [Serializable]
 14    public struct ArrayHolder<T>
 15    {
 16        public T[] TArray;
 17
 114518        public ref T this[int index] => ref TArray[index];
 19    }
 20}

Coverage by test methods







Methods/Properties

Item(System.Int32)