• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

HicServices / RDMP / 11457925069

pending completion
11457925069

push

github

JFriel
Merge branch 'develop' of https://github.com/HicServices/RDMP

11207 of 21044 branches covered (53.26%)

Branch coverage included in aggregate %.

25 of 51 new or added lines in 3 files covered. (49.02%)

705 existing lines in 27 files now uncovered.

31728 of 53779 relevant lines covered (59.0%)

4115.97 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/Application/ResearchDataManagementPlatform/WindowManagement/CollectionNavigation.cs
1
// Copyright (c) The University of Dundee 2018-2019
2
// This file is part of the Research Data Management Platform (RDMP).
3
// RDMP is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
4
// RDMP is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
5
// You should have received a copy of the GNU General Public License along with RDMP. If not, see <https://www.gnu.org/licenses/>.
6

7
#nullable enable
8
using System;
9
using FAnsi.Discovery;
10
using Rdmp.Core.CommandExecution;
11
using Rdmp.Core.MapsDirectlyToDatabaseTable;
12

13
namespace ResearchDataManagementPlatform.WindowManagement;
14

15
/// <summary>
16
/// Records the fact that the user visited a specific object in a tree collection
17
/// </summary>
18
public sealed class CollectionNavigation : IEquatable<CollectionNavigation>, INavigation
19
{
20
    private readonly IMapsDirectlyToDatabaseTable _object;
21

UNCOV
22
    public bool IsAlive => _object is not IMightNotExist o || o.Exists();
×
23

UNCOV
24
    public CollectionNavigation(IMapsDirectlyToDatabaseTable @object)
×
25
    {
26
        _object = @object;
×
UNCOV
27
    }
×
28

29
    public void Activate(ActivateItems activateItems)
30
    {
31
        activateItems.RequestItemEmphasis(this, new EmphasiseRequest(_object, 0));
×
UNCOV
32
    }
×
33

34
    public void Close()
35
    {
UNCOV
36
    }
×
37

UNCOV
38
    public override string? ToString() => _object.ToString();
×
39

40
    public bool Equals(CollectionNavigation? other)
41
    {
UNCOV
42
        if (other is null) return false;
×
43

UNCOV
44
        return ReferenceEquals(this, other) || Equals(_object, other._object);
×
45
    }
46

UNCOV
47
    public override bool Equals(object? obj) => ReferenceEquals(this, obj) || (obj is CollectionNavigation other && Equals(other));
×
48

UNCOV
49
    public override int GetHashCode() => HashCode.Combine(_object);
×
50
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc