< Summary

Class:GDX.Collections.ArrayHolder[T]
Assembly:GDX
File(s):./Packages/com.dotbunny.gdx/GDX/Collections/ArrayHolder.cs
Covered lines:3
Uncovered lines:0
Coverable lines:3
Total lines:26
Line coverage:100% (3 of 3)
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-2023 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
 18        public ref T this[int index]
 19        {
 20            get
 114521            {
 114522                return ref TArray[index];
 114523            }
 24        }
 25    }
 26}

Coverage by test methods







Methods/Properties

Item(System.Int32)