Skip to content

Commit

Permalink
Update Cube Tests (#5689)
Browse files Browse the repository at this point in the history
* Moved CubeIoHandler getters into public space

* Made getDataFile protected

* Made realDataFileName public on cube

* Added new cube tests as gtests

* Added CubeBsqHandlerTests

* Removed old Cube unittests

* Removed cube truth
  • Loading branch information
acpaquette authored Dec 13, 2024
1 parent ac1a509 commit 5f857a1
Show file tree
Hide file tree
Showing 6 changed files with 1,189 additions and 1,365 deletions.
3 changes: 1 addition & 2 deletions isis/src/base/objs/Cube/Cube.h
Original file line number Diff line number Diff line change
Expand Up @@ -325,15 +325,14 @@ namespace Isis {
void putGroup(const PvlGroup &group);
void latLonRange(double &minLatitude, double &maxLatitude, double &minLongitude,
double &maxLongitude);

FileName realDataFileName() const;

private:
void applyVirtualBandsToLabel();
void cleanUp(bool remove);

void construct();
QFile *dataFile() const;
FileName realDataFileName() const;

void initialize();
void initCoreFromLabel(const Pvl &label);
Expand Down
6 changes: 3 additions & 3 deletions isis/src/base/objs/Cube/CubeIoHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,6 @@ namespace Isis {
virtual void updateLabels(Pvl &labels) = 0;

QMutex *dataFileMutex();

protected:
int bandCount() const;
int getBandCountInChunk() const;
BigInt getBytesPerChunk() const;
Expand All @@ -137,13 +135,15 @@ namespace Isis {
int getChunkCountInSampleDimension() const;
int getChunkIndex(const RawCubeChunk &) const;
BigInt getDataStartByte() const;
QFile * getDataFile();
int lineCount() const;
int getLineCountInChunk() const;
PixelType pixelType() const;
int sampleCount() const;
int getSampleCountInChunk() const;

protected:
QFile * getDataFile();

void setChunkSizes(int numSamples, int numLines, int numBands);

/**
Expand Down
346 changes: 0 additions & 346 deletions isis/src/base/objs/Cube/Cube_truth.txt

This file was deleted.

Loading

0 comments on commit 5f857a1

Please sign in to comment.