Skip to content

Commit

Permalink
fixed up regression tessts for release
Browse files Browse the repository at this point in the history
  • Loading branch information
roznet committed Mar 13, 2022
1 parent b1f068a commit eacc76f
Show file tree
Hide file tree
Showing 19 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ConnectStats/src/GCHistoryFieldSummaryStats.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ NS_ASSUME_NONNULL_BEGIN
activityTypeSelection:(nullable GCActivityTypeSelection*)typeSelection
referenceDate:(nullable NSDate*)refOrNil
ignoreMode:(gcIgnoreMode)ignoreMode;
+(GCHistoryFieldSummaryStats*)fieldStatsWithHealthMeasures:(NSArray*)measures;
+(GCHistoryFieldSummaryStats*)fieldSummaryStatsWithHealthMeasures:(NSArray<GCHealthMeasure*>*)measures;
-(void)addHealthMeasures:(NSArray<GCHealthMeasure*>*)measures referenceDate:(nullable NSDate*)refOrNil;

-(GCHistoryFieldSummaryDataHolder*)dataForField:(GCField*)aField;
Expand Down
2 changes: 1 addition & 1 deletion ConnectStats/src/GCHistoryFieldSummaryStats.m
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ +(GCHistoryFieldSummaryStats*)fieldSummaryStatsWithActivities:(NSArray<GCActivit
return rv;
}

+(GCHistoryFieldSummaryStats*)fieldStatsWithHealthMeasures:(NSArray*)measures{
+(GCHistoryFieldSummaryStats*)fieldSummaryStatsWithHealthMeasures:(NSArray*)measures{
GCHistoryFieldSummaryStats * rv = [[[GCHistoryFieldSummaryStats alloc] init] autorelease];
if (rv) {
rv.fieldData = [NSMutableDictionary dictionaryWithCapacity:30];
Expand Down
2 changes: 1 addition & 1 deletion ConnectStatsTests/GCTestAggregatedStats.swift
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ class GCTestAggregatedStats: XCTestCase {
let performance = RZPerformance()
performance.reset()

let fieldsdata = GCHistoryFieldSummaryStats.fieldStats(withActivities: activities, activityTypeSelection: nil, referenceDate: nil, ignoreMode: gcIgnoreMode.activityFocus)
let fieldsdata = GCHistoryFieldSummaryStats(activities: activities, activityTypeSelection: nil, referenceDate: nil, ignoreMode: gcIgnoreMode.activityFocus)

if let basedate = activities.first?.date {
let indexes : Set<Index> = [
Expand Down
1 change: 1 addition & 0 deletions connectstatstestapp/ConnectStatsTestApp-Bridging-Header.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@

#import "GCHistoryFieldSummaryDataHolder.h"
#import "GCHistoryFieldSummaryStats.h"
#import "GCFieldsForCategory.h"

#import "GCTestAppGlobal.h"
#import "GCGarminLoginSSORequest.h"
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion connectstatstestapp/src/GCAppDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#import "GCHealthOrganizer.h"
#import "GCDerivedOrganizer.h"
#import "GCTestServicesViewController.h"

#import "GCAppActionDelegate.h"

@interface GCAppDelegate : UIResponder <UIApplicationDelegate>

Expand All @@ -50,6 +50,7 @@
@property (nonatomic, retain) GCAppProfiles * profile;
@property (nonatomic, retain) GCHealthOrganizer * health;
@property (nonatomic, retain) GCDerivedOrganizer * derived;
@property (nonatomic, readonly) NSObject<GCAppActionDelegate>*actionDelegate;

-(void)setupEmptyState:(NSString*)name withSettingsName:(NSString*)settingName;
-(void)setupEmptyState:(NSString*)name;
Expand Down
4 changes: 4 additions & 0 deletions connectstatstestapp/src/GCAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -390,4 +390,8 @@ -(void)versionSummary{
RZLog(RZLogInfo,@"Version %@", [[NSBundle mainBundle] infoDictionary][@"CFBundleVersion"]);
}

- (NSObject<UIApplicationDelegate> *)actionDelegate{
return nil;
}

@end
5 changes: 2 additions & 3 deletions connectstatstestapp/src/GCTestUISamples.m
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
#import "GCConnectStatsRequestFitFile.h"
#import "GCGarminActivityTrack13Request.h"
#import "GCGarminRequestActivityReload.h"
#import "GCStatsDerivedAnalysisHistory.h"
#import "GCStatsDerivedHistory.h"
#import "GCTestAppGlobal.h"
#import "GCActivitiesOrganizer.h"
#import "ConnectStats-Swift.h"
Expand Down Expand Up @@ -682,10 +682,9 @@ -(GCSimpleGraphCachedDataSource*)sample14_SimpleGradientFillPlot{

NSMutableArray * rv = [NSMutableArray array];

GCStatsMultiFieldConfig * fieldConfig = [GCStatsMultiFieldConfig fieldListConfigFrom:nil];
GCStatsDerivedHistoryConfig * derivedAnalysisConfig = [GCStatsDerivedHistoryConfig configForActivityType:GC_TYPE_RUNNING];;

GCStatsDerivedAnalysisHistory * config = [GCStatsDerivedAnalysisHistory analysisWith:fieldConfig and:derivedAnalysisConfig];
GCStatsDerivedHistory * config = [GCStatsDerivedHistory analysisWith:derivedAnalysisConfig];
config.mode = gcDerivedHistModeAbsolute;
config.longTermSmoothing = gcDerivedHistSmoothingMovingAverage;
config.shortTermSmoothing = gcDerivedHistSmoothingMovingAverage;
Expand Down

0 comments on commit eacc76f

Please sign in to comment.